You can display computer code on a wiki page either inline or as a block of code.
Inline Code
The markup for monospace type
is double curly brackets:
{{monospace type}}
Type the double curly brackets in the Confluence editor.
The double curly brackets are rendered as follows in the XHTML:
<code></code>
Code Block
To display computer code on a wiki page use the code block macro.
- Type {Code and when the macro browser opens select Code Block.
Enter the code in the macro panel.
In the example that follows, a URL was entered so it would not be live on the page. This is useful for historical URLs. Most often this macro is used to display executable code so that reserved characters appear as they do in the code.
http://gforge.nci.nih.gov