Saturday, October 17, 2009

Format your code using Syntax Highlighters

Yesterday I asked on Twitter if it bothers people that I use screenshots for codesnippets, and Lee Dumond honestly answered that screenshots suck.

Well he is right. On my monitor the screenshots look pretty good, but on laptops/smaller monitors they aren't handy at all.

Today I looked for Syntax Highlighters. Looks like there are two big players in the syntax highlighting business, and a few smaller ones.

I made a summary of interesting Syntax Highlighters I found. I will be experimenting with those in the coming weeks.

If you use one that isn't in this list, please let me know by leaving a comment!

(Edit: Don't forget to scroll to look at the list of supported languages and features!)


  1. I see that you note supported languages and line numbers as important features. Another important feature I would consider is the ability to copy snippets to the clipboard, which SyntaxHighlighter supports quite easily (not sure about the others).

    Cutting and pasting from blogs is pretty common. ;) Might as well make it as easy as possible for your readers to do so...

  2. Thanks Lee for the advice. I will add that feature to the spreadsheet!