You could also use GeSHi, which is written in PHP and has support for Objective-C, although it doesn't produce as nice results... Oh, and you definitely want to do implement some caching strategy if you do that, because GeSHi can take a couple of hundred milliseconds or more if it's a lot of code.
by Magnus Nordlander — Nov 06