1<!DOCTYPE html> 2<html> 3 <head></head> 4 <body> 5 <h3> 6 Preformatted 7 </h3> 8 <div class="toc"> 9 <p> 10 <b>Table of contents</b> 11 </p> 12 <ul> 13 <li> 14 <a href="#preformatted.preformatted">Preformatted</a> 15 </li> 16 </ul> 17 </div> 18 <div id="preformatted.preformatted"> 19 <h3> 20 Preformatted 21 </h3> 22 <div id="preformatted.preformatted"> 23 <p> 24 Here's the ubiquitous <span class="emphasis"><em>Hello World</em></span> 25 program in C++. 26 </p> 27<pre class="programlisting">#include <iostream> 28 29int main() 30{ 31 std::cout << "Hello, World!" << std::endl; 32 return 0; 33} 34</pre> 35 <p> 36 The code should appear as a single block of code in a monospaced font and 37 with no syntax highlighting. The fifth and sixth lines should appear indented 38 to the right, aligning under <code><span class="identifier">main</span></code>, 39 on line 3. 40 </p> 41 <p> 42 Here's a one line function definitition: 43 </p> 44<pre class="programlisting">void something(); </pre> 45 <p> 46 . 47 </p> 48 <p> 49 And some indented code: 50 </p> 51<pre class="programlisting"> void go() 52 { 53 } 54</pre> 55 </div> 56 </div> 57 </body> 58</html> 59