NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Copied from the "Putting code on a wiki page" page.

...

The double curly brackets are rendered as follows in the XHTML:

Code Block
<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.

Code Block
http://gforge.nci.nih.gov