By the way, have you tried the {code} tag?
It might do what you need already.
On 17/05/06, Robin Fernandes <rewbs.soal(a)gmail.com> wrote:
Hi,
The tags in {}'s are Radeox macros. To create a new Radeox macro:
1. You need to write some Java code. Implement a subclass of
BaseLocaleMacro. The meat goes in the execute method. Get the XWiki
code and look at the classes in package com.xpn.xwiki.render.macro for
examples. Ensure getLocale() returns "macro.myMacro" where myMacro is
your macro name.
2. Jar up your classes and put them in xwiki/WEB-INF/lib
3. Append the following to WEB-INF/classes/radeox_markup_xwiki.properties:
macro.myMacro.name=myMacro
4. Append the following to
WEB-INF/classes/META-INF/services/com.xpn.xwiki.render.macro.XWikiMacro
:
my.package.name.myMacroClassName
Regards,
Robin.
On 17/05/06, Xavier MOGHRABI <xavier.moghrabi(a)objectweb.org> wrote:
Hello,
I'd like to know how can I create a new tag to provide a specific text format
such as {mytag} ?
In fact, I'd like to propose a {system} tag that format text with Courier New
font.
Regards
--
Xavier MOGHRABI - Consortium ObjectWeb
Jabber: moghrabi(a)jabber.objectweb.org - Phone: +33 4 76 61 52 35
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws