If you have ever tried to display code within a post you will know all about the problems this can cause. That is why there are some amazing developers who create plugins to make that solve this niggly issue.
I tried to list down the best code highlighter wordpress plugins for you. You can download one plugin out of 10 syntax highlighter plugins given below. I am using Syntax Highlighter Evolved in my tutorials.
This plugin displays the content of a file in a post. The content of the file (called a “snippet”) is put in a block by default.
This plugin supports the highlighting of PHP, HTML, CSS and XML. The default tag-highlighter color scheme uses the same colors Adobe’s Dreamweaver is using. This makes it easy for your visitors to recognize what type of codes you wrote. These colors can be changed to your liking in the WPadmin section of your blog.
WP-SynHighlight is a WordPress plugin that allows easy syntax highlighting of source code you post in your blog. It works much like any other BBCode tag. It highlights everything you put between codesyntax BB code tags.
6. Code Snippet
A large number of languages are supported with this plugin and it can be easily extended for more. it is recommended that you always wrap your code in a pre however, most times you generally do not need to.
This plugin easily integrates the Google Syntax Highlighter by Alex Gorbatchev into WordPress.
Powerful, flexible, XHTML-compliant, server-side code highlighting.Set your code-blocks as preGeSHi (see filelist in the /GeSHi-directory) use the filename (without extension) as language-attribute. If your code is encoded add the ‘enc__’ – prefix.
CodeColorer is the plugin which allows you to insert code snippets into the post with nice syntax highlighting.
Sniplets is a generic text insertion plugin with support for an extensible processing framework. At it’s simplest this means you can dynamically replace text in your posts with text that may be defined elsewhere, or created by some other module.