Do you have a blog in which you share too much code with your readers? I think its the case, if yes, then you must be here in search of adding a Syntax Highlighter in your WordPress Blog. Syntax Highlighter helps you in making your code more readable and clean. I have also this function on my blog, you can check here. There are many plugins which can do this job. But today in this post I’m sharing details about the FV Code Highligher developed by Frank Verhoeven. You may want to try other plugins for code Highlighting.
Syntax Highlighter – FV Code Highligher Plugin
You can download this plugin from here, or if you want to install it fastly, then follow these steps.
Login to WordPress Dashboard >>> Plugins >>> Add New >>> Type “FV Code Highlighter” in the search Box. On the search results, click on the “Install” below the title of plugin. Once plugin is installed, Go to Appearance >>> Code Highlighter. Here you can set different aspects of this code highlighter plugin.
How to Use Syntax Highlighter – FV Code Highlighter Plugin
As now you have installed FV Code Highlighter Plugin, now every time you are code in your posts, use this format for code writing:
Image may be NSFW.
Clik here to view.
In this plugin you can write 5 different code types which are php, html, xml, javascript and css. Just simply replace “CodeTypeHere” from above format with one of the code types mentioned. For example if you are writing PHP code then your code format will look like this :
Image may be NSFW.
Clik here to view.
All other types will word same like above. The output of the above code with adding some PHP code will look like this:
DEMO
{code type=php}
<?php
add_filter( ‘login_headerurl’, ‘custom_loginlogo_url’ );
function custom_loginlogo_url($url) {
return ‘http://www.taimoorsultan.com’;
}
?>
{/code}
This syntax Highlighter Plugin will word for you very neatly. Your code can become more readable and readers can easily differentiate between other text and code. Hope this post will help you. Like us on Facebook
The post Add Syntax Highlighter in WordPress appeared first on TaimoorSultan.com.