XWiki Rendering - Code Macro

Hi all!

We’re using the rendering framework to create HTML out of XWiki text (thanks for this!) I noticed that {{code}}-Macros cause the renderer to complain about not being in the list of registred macros - which sounds reasonable after reading this page.

Is it possible allow the rendering framework to render {{code}}? Showing it as fixed size with some indenting would be enough for my use case.

Thanks in advance

André

You can make {{code}} have any behavior you want. {{macro}} is just a placeholder for the component with role org.xwiki.rendering.macro.Macro and hint "macro".

See http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro.

1 Like

Thanks!