[thelist] Syntax Highlighting

Jeff Howden jeff at jeffhowden.com
Sun Oct 16 22:07:33 CDT 2005


Thomas,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Thomas Mayfield [mailto:tgmayfield at gmail.com] 
> 
> [...] GeSHi package looks very useful [...]
> http://phpclasses.goodphp.com/browse/package/1759.html
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Yeah, I found GeSHi through another source and am impressed with it.

http://qbnz.com/highlighter/
http://geshi.org/

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> http://scott.yang.id.au/file/php/syntax_hilight.php -
> Simple enscript implementation.  Designed to be a
> WordPress plugin, but all that means it that it has
> one extra procedure.  You could modify this code to use
> any external utility that outputs (or that can be
> wrapped to output) the fancied code to STDOUT.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

It doesn't appear to be configurable though so it won't highlight languages
it doesn't know anything about, which is most of the ones I'll need to
syntax highlight.  ;)

Additionally, trying to muscle something that uses PHP into what I want/need
it to do is more work than I want to put in.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> http://www.andre-simon.de/ Simply called "Highlight". 
> Supports multiple output formats.  You could plug it in
> to the syntax_highlight script above, or write a shell
> script to create static versions (offering users
> whatever type of file they like).
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

The beautifier aspect of it is intriquing though all the code samples I
currently have already have impeccable indenting.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> https://jhighlight.dev.java.net/
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

This looks extremely promising as I can import Java packages right into
ColdFusion and then instantiate objects and call their methods natively.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> http://webcpp.sourceforge.net/ Actually looks closest to
> what you want, as it uses CSS to control a lot of the
> display.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Yeah, that looks really sweet.  I've contacted the author with some language
plug-in implementation specific questions.

I'm also in the midst of investigating another promising find:

http://colorer.sourceforge.net/

Thanks,

 [>] Jeff Howden
     jeff at jeffhowden.com
     http://jeffhowden.com/



More information about the thelist mailing list