code

Last modified by Josué Tille on 2026/08/07 10:43

The code Confluence macro  is converted to the code macro which a standard installation of XWiki provides.

What to use in XWiki

How this macro would be implemented in XWiki and comparison with the corresponding feature

The code macro provides similar features.

See Code Macro.

Import details

Details on how (well) this Confluence macro is imported
  • The language parameter (nameless / default, lang or language) is copied to language.
  • if the linenumbers parameter is true, layout="linenumbers" is used
  • The macro content is copied as is, unless it contains {{/code}}, in which case it is put in the source parameter, using the string: prefix instead.

Get Connected