feedback on code section in Xwiki page

3 messages Options
Embed this post
Permalink
Leon Wang-2

feedback on code section in Xwiki page

Reply Threaded More More options
Print post
Permalink
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
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
tmortagne

Re: feedback on code section in Xwiki page

Reply Threaded More More options
Print post
Permalink
On Wed, Oct 21, 2009 at 14:04, Leon Wang <[hidden email]> 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
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Leon Wang-2

Re: feedback on code section in Xwiki page

Reply Threaded More More options
Print post
Permalink
In reply to this post by Leon Wang-2
Hi Thomas,
It works. This is so cool. :-)

Thanks.

-Leon
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs