On Tue, Apr 28, 2009 at 11:50 AM, Vincent Massol <vincent(a)massol.net> wrote:
Hi Jonas,
On Apr 28, 2009, at 11:33 AM, Jonas Almfeldt wrote:
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?
Right now it is. When we fix
http://jira.xwiki.org/jira/browse/XWIKI-3079
you'll be able to write:
{{velocity}}#info("..."){{/velocity}}
And better when we finish
http://jira.xwiki.org/jira/browse/XWIKI-2968
(we're close) then you'll be able to write:
{{info .../}}
Good to know :) Thanks for the info.
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
This looks like a bug. Can you raise a jira issue for this?
Thanks
-Vincent
yes I can do that, but I want to be able to describe the problem better
first :)
If I set the code language clause to =none, then it works, but it does not
highlight of course.
Trying to specify other languages like, C, PHP, XML, HTML, and even not
specifying any language at all gives the error "Failed to execute macro:
code" with the failed to highlight exception.
Example that works:
{{code language=none}}
<html>
<head>Cool!</head>
</html>
{{/code}}
example that don't work:
{{code language=html}}
<html>
<head>Cool!</head>
</html>
{{/code}}
Is someone else having the same problem with Xwiki Enterprise 1.8.1 or
1.8.2? I am having this problem in both versions.
Kind regards,
Jonas