Or maybe not. A while back, I blogged about the code syntax highlighter I was using and the various issues I had with it. Over the past two months, I have tried several other code syntax highlighters, and thought I would summarize my experiences with them now.
|Code Syntax Highlighter||Looks OK in Blog?||Looks OK in RSS feed?||Client -side Processing?||Modify after posting?||Blog Post|
|Insert Code – a Windows Live Write plugin.|
|BlogTrot Code Window – An online tool to generate HTML for your code snippet.||Sending Gmail via PowerShell|
|NeatHighlighter - Similar to BlogTrot.|| |
Send Outlook Email Via Powershell – since updated to use BlogTrot.
|Source Code Formatter – Another Windows Live Write plugin.||Fevered Coding|
I’ll be using the Google Code Prettify library to highlight all code snippets going forward.
The BlogTrot Code Window rendered the code on screen the best of all the highlighters tried, and the options to print and view as plaintext were also useful. The rendering in the RSS feed was poor, however, and the HTML produced could not be easily modified after posting.
It is worth noting that Scott Hanselman has recently blogged about using Syntax Highlighters again. The one option he considers that I haven’t yet tried is hosting my code somewhere like GitHub, or Snipplr. If you have tried one of these repositories to store and display your code snippets on a blog, please add a comment below!