I need to do source code formatting (similar to what Stack Overflow does), but on the server side. What options do I have? My serverside language could be PHP or JSP. Does google have a server version of syntaxhighlighter?
A:
Try enscript. I use it to for syntax-highlighted printouts, but it also generates html, rtf and even ANSI codes.
$ enscript -w html -o program.html program.c
it's a standalone utility, so you can use it from any language.
codehead
2009-11-20 09:36:51