W3C home > Mailing lists > Public > public-svg-ig@w3.org > July to September 2008

Syntax Highlighter on the Community Site

From: Rob Russell <rob@latenightpc.com>
Date: Thu, 21 Aug 2008 18:35:45 -0400
Message-ID: <48ADEDC1.50808@latenightpc.com>
To: public-svg-ig@w3.org

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 -->

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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:28:23 UTC