Confluence 1.4 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The Code Block Macro allows you to display source code in your document with the appropriate syntax highlighting.
You can specify the programming language. Confluence currently supports Java, XML and SQL with Java being the default language for this macro.
コード ブロック マクロ
{code:language} ... code ... {code}
OR
{code} ... java code ... {code}
Example 1: Java
必要な入力項目 |
表示結果 |
---|---|
{code} |
public String getFoo() { return foo; } |
Example 2: XML
必要な入力項目 |
表示結果 |
---|---|
{code:XML} |
<test> <another tag="attribute"/> </test> |
関連トピック
Take me back to Help Home
概要
コンテンツ ツール
アプリ