code

Last modified by superadmin on 2026/11/18 11:31

The code Confluence macro is converted to the code macro.

The target macro requires package org.xwiki.platform:xwiki-platform-rendering-macro-code.

What to use in XWiki

How the Confluence macro compares with the XWiki alternative feature, paths to (manual) replacement of the usage of the Confluence macro with the XWiki feature, etc.

The code macro provides similar features.

See .

Import details

Details on how this Confluence macro is imported into its XWiki equivalent / alternative (parameters or content conversion, usage conversion).
  • 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