I'm very happy with SHJS. It supports a bevy of languages and seems pretty fast and accurate.
Here's an example where I use it on my blog. I'm using my own custom CSS file that simulates Coda's syntax highlighting. Email me if you'd like to use it.
I'm not being argumentative but just thought it worth mentioning that if you're using a CMS or blog platform then using a backend highlighter is better for obvious reasons — Have a look at Geshi(http://qbnz.com/highlighter/) if you're interested. Actually you could set up your server to parse HTML content through a backend technology — so there is no need for the JS highlighters at all. (The only functionality they add is the ability to print/copy[using swf].)
jQuery.Syntax is an extremely fast and lightweight syntax highlighter. It has dynamic loading of syntax source files and integrates cleanly using CSS or modelines.
It was developed specifically to fill a gap - that is: a fast, clean, client-side syntax parser.
It supports such things as code and pre blocks, able to use classnames like language-javascript to indicate we want it to highlight, as well as wordwrap. You can copy and paste code by selecting it normally instead of having to open a raw view like many others. It can be further customised by using the HTML5 data attribute data-sh or via specifying options at initialisation. A great stable choice which is updated regularly.
It’s tiny. The core is only 1.5KB minified & gzipped.
It’s incredibly extensible. Not only it’s easy to add new languages (that’s a given with every syntax highlighter these days), but also to
extend existing ones.
It supports parallelism through Web Workers, for better performance in certain cases.
It doesn’t force you to use any Prism-specific markup, not even a Prism-specific class name, only standard markup you should be using
anyway. So, you can just try it for a while, remove it if you don’t
like it and leave no traces behind.