When I write post and highlight HTML/CSS or PHP or any other languages, I have to replace tags ‘
<‘ with ‘
<‘ . It consumes a lot of time to convert. An easy way to implement source code or programming language is to implement a WordPress plugin. WordPress plugin Syntax Highlighter Compress has support for many languages listed below. Though there are many similar plugin available but the advantage of using this plugin is that it loads the necessary brush files dynamically. Unlike other plugin based on Syntax Highlighter Script but these cause long page loading time and they are difficult to handle.
When you choose a plugin first look at its rating, compatibility and last updated these are the parameters one must check before testing or implementing any plugin.
The highlighted code in your post will look like in the image below more highlight styles are available, you can change the highlight setting in setting menu.
Supported Mark-up or Available Programming languages
Syntax Highlighter ComPress is a simple WordPress plugin. Code and source text of various programming languages or mark-up can be highlighted in WordPress. This plugin last updated at 2010-9-29, requires WordPress version 2.6 or higher and it is compatible with version 3.0.3. Once you have installed this plugin, activate it then an icon appears in your post text area, look at the image below, click it select language and paste your code. You can go for a Demo Here.
- Plain Text
- Visual Basic
You can find more setting option in the admin panel settings menu. Settings option available for stylesheet, Auto-Links, Collapse, Gutter, Smart-Tabs, Tab-size and Toolbar.
Let me know if you have idea about better WordPress plugins.
Link : Syntax Highlighter ComPress