* Nic Pottier <nicpott...@gmail.com> [2010-07-06 18:14]: > On Jul 6, 2010 5:41 PM, "R.Bauer" <rb.p...@gmail.com> wrote: > > pygments syntax hightlighting is default in moin-1.9 > > > > {{{#!highlight python > > class Example(object): > > }}} > > > > see > > http://moinmo.in/HelpOnParsers#highlight_parser
> Using moinmoin markup, yes it is. But I couldn't figure out the right > incantation to get it to work with code blocks when using restructured text. I have the same problem with the latex plugin. It doesn't work when using rst as parser. E.g. {{{ #!latex \gamma \gamma }}} > I ended up hacking my own version to make it work I'm very interested in your hack. Better would be though for the MoinMoin developers to make the rst parser accept {{{ code. I guess it is very easy if you know how the parser works. BTW, writing e.g. {{{#!highlight python is painful long. Isn't there a kind of macro directive, with which you can do something like: #macro p highlight python {{{p a = 2 }}} ? -- Ivan Villanueva Initiator: http://StopSoftwarePatents.eu ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user