This is interesting but requires some work. What's
the easiest
solution to colourize a preformatted text? Is it possible to make a
particular (instance of a) word appear in a different color?
I am sure you know ShoutPier from seaside.st and my blog, they both
use Shout to highlight Smalltalk code. It would be easy to add
pretty-printing too, if that would be a requirement.
There are several JavaScript libraries available that do
syntax-highlighting on the client-side. I've never tried to integrate
one of these libraries, but that should be easily possible.
http://shjs.sourceforge.net/
http://softwaremaniacs.org/soft/highlight/en/
http://mihai.bazon.net/projects/javascript-syntax-highlighting-engine
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch