[xwiki-devs] feedback on code section in Xwiki page
Hi everyone, It seems the code section in Xwiki page can display html tags with color which is cool, but it seems it can not recognize Java code and display it with color. If it can display all sort of codes with colors it will be perfect. Thanks. -Leon
On Wed, Oct 21, 2009 at 14:04, Leon Wang <[email protected]> wrote:
Hi everyone, It seems the code section in Xwiki page can display html tags with color which is cool, but it seems it can not recognize Java code and display it with color. If it can display all sort of codes with colors it will be perfect.
Sometimes the code macro is not able to automatically find what is the syntax but you can always set explicitly the syntax the following way: {{code language="java"}} class ClassName { } {{/code}} Code macro support all Pygments (http://pygments.org) supported syntaxes, see http://pygments.org/languages/
Thanks.
-Leon _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Leon Wang -
Thomas Mortagne