Hi,
This is because of velocity which is handled before.. Changing the
current behavior would break the cases where you want to generate
something in velocity and then display it in the {code} or {pre} tags..
I'm not sure how to handle this for backwards compatibility
I think we need to review the escaping mecanism with groovy, velocity,
radeox, html syntaxes..
Ludovic
Stephen Schaub wrote:
I'm having difficulty putting C/C++ code on an
XWiki page:
{code}
#include <stdio.h>
{code}
or
{pre}
#include <stdio.h>
{/pre}
both result in exception stack trace in the web page.
When I try
{code}
\#include <stdio.h>
{code}
it works ok.
Escaping the #include with a backslash is an acceptable workaround in
the short term -- but shouldn't the {pre} or {code} tags disable the
special meaning of the # character?
Stephen
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic