#pre tag / #code tag

Adding a #pre tag to a text fragment displays the content "as is" and no further formatting will be applied to it (similar to HTML <pre>..</pre> mark-up).
a sample fragment with #pre
Adding both #pre and #code tags to a text fragment displays the content "as is" with program-code syntax highlighting.
a sample fragment with #pre and #code
You can optionally specify the programming language in which the code is written with a #lang-<language name> tag, for more detail of language names, see the google-code-prettify document.

Preformatted text

1
 2
  3
   4
    5

Program-code syntax highlighting

/** 
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
  public static void main(String[] args) {
    System.out.println("Hello World!"); // Display the string.
  }
}