Confluence bridge for Paste Code Macro
Zuletzt geändert von xwikiadmin am 2024/06/24 15:09
Description
This macro is a bridge for the Confluence Paste Code macro to XWiki's Code macro. The aim of this macro is to allow users to paste code snippets in the page.
Parameters
Parameter | Description |
---|---|
language | The code language to be used for the representation. |
title | The title of the box containing the code. |
Example of usage
{{confluence_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}}
class Simple{
public static void main(String args[]){
System.out.println("Hello World !");
}
}
{{/paste-code-macro}}
With the following result :
Hello World Example
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
{{/paste-code-macro}}
public static void main(String args[]){
System.out.println("Hello Java");
}
}
{{/paste-code-macro}}