Confluence 2.5 has reached end of life
Check out the [latest version] of the documentation
This page is outdated. Please see new page.
Allows you to display code in your document with the appropriate syntax highlighting.
Usage:
{code:language} ... code ... {code}
OR
{code} ... java code ... {code}
Parameter |
Required |
Default |
Description |
|---|---|---|---|
language |
no |
Java |
Specify the programming language. Currently supported: Java, XML and SQL. |
Example 1: Java
{code}
public String getFoo()
{
return foo;
}
{code}
gives:
public String getFoo()
{
return foo;
}
Example 2: XML
{code:XML}
<test>
<another tag="attribute"/>
</test>
{code}
gives:
<test>
<another tag="attribute"/>
</test>
Overview
Content Tools
Apps
