Zuletzt geändert von xwikiadmin am 2024/06/24 14:35

Zeige letzte Bearbeiter
1 = Description =
2
3 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.
4
5 = Parameters =
6
7 |=Parameter|=Description
8 |**language**|The code language to be used for the representation.
9 |**title**|The title of the box containing the code.
10
11 = Example of usage =
12
13 {{code}}
14 {{confluence_paste-code-macro language="java" title="Hello World Example"}}
15 class Simple{
16 public static void main(String args[]){
17 System.out.println("Hello World !");
18 }
19 }
20 {{/paste-code-macro}}
21 {{/code}}
22
23 With the following result :
24
25 {{confluence_paste-code-macro language="java" title="Hello World Example"}}
26 class Simple{
27 public static void main(String args[]){
28 System.out.println("Hello Java");
29 }
30 }
31 {{/paste-code-macro}}