Syntax Highlighter on the Community Site

I just installed, configured and enabled a module based on GeSHi
(generic syntax highlighter) for the community site, now when creating
pages you'll be able to add source code using a format like

<code type="xml">
<!-- xml goes here -->
</code>

You can also create nodes of type "Source code node" which consists
entirely of code in one language.

There are a lot of languages already supported by the library, you can
read about it at http://qbnz.com/highlighter/. The specific Drupal
module is described at http://drupal.org/project/geshifilter.

Languages in the library are handled by language files. If anyone has
the fortitude, it would be nice to have a specific highlighter language
file for SVG rather than using the generic XML one. I know this can be
done with just XSLT (I've done it before) but the GeSHi library seems to
be supported and actively developed. It would be nice to be able to
build a language file for SVG and contribute it to GeSHi, after all MXML
is supported. Anyone interested can have a look at
http://qbnz.com/highlighter/geshi-doc.html#language-files .

I haven't tested it out much so any feedback is appreciated.

Regards,
Rob Russell
rob@latenightpc.com
http://www.latenightpc.com/blog/

Received on Thursday, 21 August 2008 22:36:22 UTC