[webgen-users] Pygments
Thomas Leitner
t_leitner at gmx.at
Tue Feb 15 09:50:45 EST 2011
On 2011-02-07 08:00 +0000 Kannan Goundan wrote:
> The Pygments highlighter supports many more languages than CodeRay.
> Pygments is written in Python, but I've seen non-Python projects use
> it (Jekyll, Pygments).
>
> There's also this: https://github.com/nex3/rb-pygments
>
> Any idea how much work it would be to add Pygments support to Webgen?
Have a look at the implementation of the xmllint content processor
(for how to use the output of a system command) and the coderay tag
(for how to implement a tag). This should give you an idea on how to
implement a tag that does the same thing as the coderay tag but with
pygments as backend.
-- Thomas
More information about the webgen-users
mailing list