http://www.perlmonks.org?node_id=315393


in reply to On-the-fly all-languages syntax highlighting

Another Perl script for doing syntax highlighting in various languages that you might want to be aware of is Peter Palfrader's Code2HTML. I wrapped it into a single .pm perl module and regularly use it to generate dynamic formatting from apache/mod_perl.

You can find the code and see it in action at http://cs.marlboro.edu/code/perl/Code2HTML/.