This page last changed on Jan 24, 2005 by cmiller.

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 May 01, 2007 19:28