Hi,
On Fri, Aug 28, 2009 at 6:17 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi,
Right now we support code macro in both inline and standalone modes.
However the style isn't nice if the macro is inline and on several
lines.
For ex:
This is {{code language="java"}}
public class LoggingEventListener implements EventListener
{
}
{{/code}} inline
I'm proposing to test in the code macro if there are NL in the macro
content and if so and if the macro is inline then generate an error
explaining that the macro but not be inline to use multi line content.
WDYT?
What about automatically displaying it as if it were standalone if there are
new lines in it instead of generating an error?
Guillaume
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/