The first place I looked at was the PHP functions of
highlight_string. While this is great for PHP… but didn’t really do line numbers or anything. This was ok, but I wanted a better solution - I’m a huge fan of line numbers (thank you IDEs!). Well, this really cool script by Aidan called PHP_highlight is awesome! It offers alot of cool features beyond the standard highlighting.
But what about my Komodo IDE and Eclipse and all those others that do a ton of highlighting… Well, enter GeSHi. GeSHi is the Generic Syntax Highlighter. It supports the following languages:
I love this!! If I had to do source highlighting, I’m going to use GeSHI.