Hi Vincent, Sorry for my delay in answering.
the #info macro works and renders correctly when I type in the following in the (xwiki/2.0 syntax) wiki editor: {{velocity}}{{html wiki=true}}#info("Important info message text"){{/html}}{{/velocity}} Is this the correct way to use the #info macro? I can't get the code macro to work though, do you have any idea of what I am doing wrong? typing in the following in the wiki editor (also in xwiki/2.0 syntax mode) {{code}}ls -al{{/code}} results in (after clicking the "Save & View" button): At the place of the {{code}}ls -al{{/code}}: Failed to execute macro: code org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:85) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:46) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:139) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:168) at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:112) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:86) at .. .. Maybe I am not using the code macro correctly? Kind regards, Jonas On Wed, Apr 22, 2009 at 12:45 PM, Vincent Massol <vinc...@massol.net> wrote: > > On Apr 22, 2009, at 12:40 PM, Jonas Almfeldt wrote: > > > Hi, > > > > I believe I'm having the same problem with rendering of macros > > (particularly > > the #info() and also {{code}} macro in the xwiki/2.0 syntax in xwiki > > 1.8.1. > > What problem? Have you seen my answer to Kelly? > > Thanks > -Vincent > > > Kind regards, > > Jonas > > > > > > On 4/21/09, Kelly Lakas <kla...@nwlinc.com> wrote: > >> > >> Hi - > >> > >> > >> > >> I am trying to make the warning box macro work in 2.0. From the > >> research I did, it looked like I needed to put it in like this: > >> > >> {{velocity}}#warning("this needs an update"){{/velocity}}. Then I > >> get > >> this on render: <div class="warningmessage"><span > >> class="messagetype">Warning: </span>this needs an update</div>. > >> > >> > >> > >> I tried {{velocity}}{{xhtml}}#warning("this needs an > >> update"){{/xhtml}}{{/velocity}} as well, but that failed too - I > >> get an > >> error box that says "unknown macro: html". > >> > >> I'm using XWiki Enterprise 1.8.1.18545, installed on my local box. > >> > >> > >> > >> I'm not a programmer/developer, so I'm a little stuck on the next > >> step > >> and my investigations so far haven't turned up what I need to do. > >> > >> > >> > >> I saw also on the footnotes macro page that the comment said that it > >> didn't work in 2.0, so I'm assuming that needs an update to get it to > >> work? Or is the comment wrong? > >> > >> > >> > >> Hate to bother, just looking for a little help. > >> > >> > >> > >> Kelly Lakas > >> > >> Project Manager > >> > >> > >> > >> next wave logistics inc. > >> > >> 28377 davis parkway, suite 607a > >> > >> warrenville, il 60555 > >> > >> ________________________ > >> > >> > >> > >> [office] 847.798.8897 > >> > >> [mobile] 312.307.2079 > >> > >> [web] www.nwlinc.com <http://www.nwlinc.com> > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users