[xwiki-users] How do I apply monospace wiki markup in a velocity script?
{{velocity}} ##hello## {{/velocity}} Just prints nothing. Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup. What can I do? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?
I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works. Where can I find the documentation about it? On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.frwrote: On 11/11/2012 05:28 PM, crocket wrote: {{velocity}} ##hello## {{/velocity}} Just prints nothing. Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup. This should work : ${escapetool.H}#hello${**escapetool.H}# Jerome What can I do? __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?
OK. I found the documentation on http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/EscapeTool.html?is-external=true What does velocity do with the second # in ${escapetool.H}#? Does it do nothing about it? On Mon, Nov 12, 2012 at 4:44 AM, crocket crockabisc...@gmail.com wrote: I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works. Where can I find the documentation about it? On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.frwrote: On 11/11/2012 05:28 PM, crocket wrote: {{velocity}} ##hello## {{/velocity}} Just prints nothing. Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup. This should work : ${escapetool.H}#hello${**escapetool.H}# Jerome What can I do? __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?
On 11/11/2012 08:44 PM, crocket wrote: I just referred to http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but there is no mention of H. However, it works. Where can I find the documentation about it? Strangely the documentation doesn't seem to show inherited methods from org.apache.velocity.tools.generic.EscapeTool, but if you click the parent link on the escapetool, you'll see getH() Jerome On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.fr mailto:jer...@velociter.fr wrote: On 11/11/2012 05:28 PM, crocket wrote: {{velocity}} ##hello## {{/velocity}} Just prints nothing. Since ## means the beginning of a comment in velocity, I can't use ## and ## as monospace wiki markup. This should work : ${escapetool.H}#hello${escapetool.H}# Jerome What can I do? ___ users mailing list users@xwiki.org mailto:users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org mailto:users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users