Syntax highlighting in blog posts

While looking around for ways to make code more legible in blog posts, I came across this excellent Javascript code called syntaxhighlighter (obviously), which has support for various languages.

Getting this to work with Blogger would have been tricky, if not for FaziBear's Blogger widget, which essentially puts all that syntaxhighlighting Javascript into a widget that you then load into your template.

Bingo! Instant syntax highlighting in Blogger.

Here's an example for PHP...

Filed under  //  blog   code   javascript  
Posted by Farez Rahman