Writing posts in a beautiful way will definitely increase the readability of your posts. In this post I will explain how you can highlight CSS, Java and other codes in your posts easily with Syntax highlighter wordpress plugin. There are lots of plugins available for wordpress blogs to highlight codes in your posts but I will use syntax highlighter plugin by Vijesh Mehta in this post.
How to Highlight codes
- First download syntax highlighter plugin from this link.
- Now install this plugin and activate it.
- Now write any post and surround the code in your post like this :
> â€¦Your Code Here </
replace the “[code-alias]” segment with the type of code you have. You can see all the available brush alias here.
For example if you want to use PHP code in your post, it would look like this :
> â€¦Your PHP Code Here </
- You can see this screenshot to see how this plugin will highlight your codes :