Am 22.01.2013 09:33, schrieb Thomas Mortagne:
On Tue, Jan 22, 2013 at 9:31 AM, Thomas Mortagne
<thomas.morta...@xwiki.com> wrote:
On Mon, Jan 21, 2013 at 9:10 PM, Richard Hierlmeier
<rhierlme...@googlemail.com> wrote:

Hi XWiki users,

I could not find in the XWiki documentation a hint of the supported
languages for the code macro.

Well you have a link to http://pygments.org/languages/ on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Code+Macro but
its not always perfectly up to date.


I wrote a small script in a XWiki page that read out of pygment (the
technology behind the code macro) all supported languages with language
name, files extension and mimetype.

See:

http://www.hierlmeier.de/wiki/bin/view/Main/SupportedCodeMacroLanguages

That's indeed very useful. Especially getting the exact identifier of
the language which is not very clear on
http://pygments.org/languages/.

By the way it would probably be easier to directly use the python
macro instead of the groovy one ;)

A stick-in-the-mud will try nothing new (:.
I implemented it in python and it is indeed much shorter.

Thank you

Richard





Richard
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne



--
Thomas Mortagne
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to