This page last changed on May 29, 2007 by rosie@atlassian.com.

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>
Document generated by Confluence on Oct 10, 2007 18:35