On Aug 29, 2009, at 1:26 PM, Sergiu Dumitriu wrote:
Vincent Massol 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?
+1, if we do allow to put code blocks inside a group.
Yes we do. A group block will break the inline flow.
For ex:
This is ((({{code language="java"}}
public class LoggingEventListener implements EventListener
{
}
{{/code}}))) inline
is the same as:
This is
{{code language="java"}}
public class LoggingEventListener implements EventListener
{
}
{{/code}}
inline
Thanks
-Vincent