Formatting Rules/Source Code

Blocks of text that are surrounded by <code> and </code> are treated as source code and displayed within <pre>..</pre> tags. HTML is escaped so that it will appear as text. No other formatting rules are applied to the code, so wiki markup will not be applied.

For example, the following:

 <code>
   void MyFunction(void)
   {
     fprintf(stdout, "hello, world!\n");
   }

</code>

renders as:

  void MyFunction(void)
  {
    fprintf(stdout, "hello, world!\n");
  }

Note that MyFunction didn't appear as a link in that block of code, since wiki markup is not applied to source code.

Document last modified Sat, 04 Dec 2004 23:00:05