Paste Code Macro

Last modified by Frank Fock on 2024/05/23 17:17

Description

The Code Paste macro is a bridge between Confluence and XWiki's Code macro. The aim of this macro is to allow users to paste code snippets in the page.

Parameters

ParameterDescription
languageThe code language to be used for the representation.
titleThe title of the box containing the code.

Example of usage

{{paste-code-macro language="java" title="Hello World Example"}}
class Simple{
    public static void main(String args[]){
        System.out.println("Hello World !");
    }
}
{{/paste-code-macro}}

With the following result :

There is no valid license for Pro Macros. Please visit the Licenses section.