The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress
Posted by Daniel - 2,106 Views
There is no doubt that I need a WordPress plugin to highlight my code examples for this blog. It’s a requirement since I publish many programming code example within this blog. I had tried some of them, mostly from the WordPress plugin repository. All of them are relatively good but if I ask myself which one is my favorite I choose CodeSnippet Plugin. Why? Most of the syntax highlight plugins I had tested did not perfectly display their formatted code with my current theme, while CodeSnippet does, it’s perfectly blend with my theme. I guess the first good impression what makes me choose to use the CodeSnippet but please remember that this is my opinion only, some of you may think that my opinion is not correct.
CodeSnippet Plugin is a code highlighter plugin powered by the GeSHi engine. A large number of languages are supported and it can be easily extended. These are the supported languages mentioned on its readme file:
actionscript-french, actionscript, ada, apache, applescript, asm, asp, bash, caddcl, cadlisp, c_mac, c, cpp, csharp, css-gen, css, delphi, diff, div, dos, d, eiffel, freebasic, gml, html4strict, ini, inno, java, javascript, lisp, lua, matlab, mpasm, nsis, objc, oobas, oracle8, pascal, perl, php-brief, php, python, qbasic, sdlbasic, smarty, sql, vbnet, vb, vhdl, visualfoxpro, xml.
To use CodeSnippet within your post all you need to do is to put your code between its formatting tag. The example opening tag is [ code lang=”php” ] and the closing tag is [ /code ].
Following is an example of c code formatted with the plugin:
CodeSnippet is class based so you can use it anywhere you want by creating the instance of the class. You can find the example here.
Download CodeSnippet (186 KB)
__________________________
The following posts are programmatically considered as related to the current post by YARPP Plugin:
- Wordpress, Combining ContuttoPDF with Code Snippet Plugin to get your code sample printed on the PDF
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer
- ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
- Customizing the PDF file created with ContuttoPDF Wordpress Plugin
- The Modified Version of phoogle WordPress plugin - Eliminating the needs of Exec-PHP
Related posts brought to you by Yet Another Related Posts Plugin.
Latest from Tested Software
- Sweet Home 3D, a free home design software
- SmartFTP Client is no longer Free. What would be the best replacement for it?
- Kantaris Media Player, The most suitable Free Media Player on my Audio Environment
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress
6 Responses to “The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress”
Leave a Reply
Latest Blog Entries
- Sweet Home 3D, a free home design software
- 26x Optical Zoom on a Compact Digital Camera?
- Windows 7 Release Candidate is now available
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- The Lack of Chances is the Source of Poverty, Can we make a different?
- SmartFTP Client is no longer Free. What would be the best replacement for it?
- Kantaris Media Player, The most suitable Free Media Player on my Audio Environment
Categories
Neighbours and Friends
- Anti Teori
- Busby SEO Test Page
- Deny Sri
- Digital Media Convert
- Freeware Maniac
- Oeroek
- RidhoCyber
- Suraja Web
Comments - Thanks Guys :)
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
Marlena Albu: Super Blog, Dude! I am constantly on the watch for new and interesting sites and postings about audio equipment… which is what...
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.
Sean: This is a great piece of code and thanks for adding the updates. Sean’s last blog post: Not All Text Message Marketing Is Created...
rodhy: Thank for your code, it very usefull for me. best regard.
Most Popular Entries
- Passing arguments to your VB.NET console application
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- An example: Using CPort Delphi Component to read data from your cellphone
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
Software Collections
- Sweet Home 3D, a free home design software
- SmartFTP Client is no longer Free. What would be the best replacement for it?
- Kantaris Media Player, The most suitable Free Media Player on my Audio Environment
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress
Blogging Related Stuff
- Change the WordPress permalink structure to the best format, and yes it’s a little bit scary :D
- Something is wrong, the Google Search Result from my blog looks bad, don’t laugh please :D
- Several tips to reduce Blog Noise, especially when your blog covers more than one niche
- How to remove your indexed pages or even your entire site from Google and Yahoo!


















February 9th, 2008 at 1:32 am
I like how it displays code formatted with color. Thanks for sharing the tip!
March 3rd, 2008 at 3:34 am
@Sterling: You’re welcome :) Had visited your blog just now. I haven’t had time to explore it but it looks very useful..
Thanks for passing by and I am sorry for very late reply..
_____________
Daniel
March 16th, 2009 at 5:40 pm
Thank you - I’ll be sure to check back later for more of your posts.
March 21st, 2009 at 4:51 pm
hey id like to talk with you about your blog. please email me - thanks.
March 21st, 2009 at 7:30 pm
@Jacob: Feel free to talk with me here…
February 9th, 2010 at 9:09 am
yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.