iG:Syntax Hiliter free WordPress plugin
Description
iG:Syntax Hiliter allows you to post source code to your site with syntax highlighting and formatting (as seen in code editors, IDEs). You can paste the code as is from your code editor or IDE and this plugin will take care of all the code colouring and preserve your formatting. It uses the GeSHi library to colourize your code and supports over a 100 programming languages. Most common languages are included with the plugin and it includes drop in support for more languages used by GeSHi. NOTE : For fast results and less load on your server, you should have a cache plugin installed. That way the plugin won’t have to parse the code blocks on a post every time its loaded in browser. Minimum Requirements WordPress 4.1 or above PHP 5.3 or above Pull requests are welcome on Github. Github: https://github.com/coolamit/ig-syntax-hiliter Plugin Usage Using this syntax highlighter is fairly easy. There is one tag and 8 optional attributes. Here’s how code is posted for it to be highlighted. [sourcecode language=”language_name”] //some code here [/sourcecode] So if you are posting some PHP code then it would be [sourcecode language=”php”] //some code here [/sourcecode] or you can use shorthand tags like [php] //some code here [/php] Its advised to use the full format of the tag for semantics, however its a personal choice and the plugin supports both full format and shorthand. HTML entities need not be escaped, you can post your code as is and the plugin takes care of it all. Important : Do not forget to close the tags, as your code will not be hilited if you don’t close your tags. Also, don’t nest tags. Nesting of tags don’t work, so don’t try it, it’ll ruin your output. Also a WYSIWYG editor (like the one bundled with
Features
Cost:
Free
Provider:
Amit Gupta
Popularity:
Low
WPMarket

