[Moin-devel] Modification to wiki.py

Nicholas Bastin nbastin at mac.com
Sun May 5 12:47:06 EDT 2002


I've made modifications to parser/wiki.py to support arbitrary syntax 
highlighting (any string after "#!" causes the code to attempt an import 
of a module of the same name).  For example, now if you added a c.py to 
MoinMoin/parser, entering the string #!c after {{{ would cause the c 
parser to be used.  This allows developers to add new colorizers by just 
dropping in a new module, and not having to modify core wiki code.

Anyhow, kind of wondering where to send the patch?  I'm also working on 
a c syntax module.

--
Nick Bastin





More information about the Moin-devel mailing list