July 17, 2008

Syntax Highlighting for Blogs

I have an idea of creating a CSS file containg syntax highlighting rules for various languages, ie different colours for variables, and comments …

Then create a perl script to parse a source code snippet, and apply the relevent <span id> tags to the snippet to source code to be displayed on a blog in a readable fashion.