• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[article Preformatted
2]
3
4[section Preformatted]
5
6Here's the ubiquitous /Hello World/ program in C++.
7
8[pre
9#include <iostream>
10
11int main()
12{
13    std::cout << "Hello, World!" << std::endl;
14    return 0;
15}
16]
17
18The code should appear as a single block of code in a monospaced font and with
19no syntax highlighting. The fifth and sixth lines should appear indented to the
20right, aligning under `main`, on line 3.
21
22Here's a one line function definitition: [pre void something(); ].
23
24And some indented code:
25
26[pre
27    void go()
28    {
29    }
30]
31
32[endsect]
33