summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/quickbook/test/preformatted-1_1.gold-html
blob: e25c047f5acd562253ddc0a6e3e3dbfead3d9891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <h3>
      Preformatted
    </h3>
    <div class="toc">
      <p>
        <b>Table of contents</b>
      </p>
      <ul>
        <li>
          <a href="#preformatted.preformatted">Preformatted</a>
        </li>
      </ul>
    </div>
    <div id="preformatted.preformatted">
      <h3>
        Preformatted
      </h3>
      <div id="preformatted.preformatted">
        <p>
          Here's the ubiquitous <span class="emphasis"><em>Hello World</em></span>
          program in C++.
        </p>
<pre class="programlisting">#include &lt;iostream&gt;

int main()
{
    std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; std::endl;
    return 0;
}
</pre>
        <p>
          The code should appear as a single block of code in a monospaced font and
          with no syntax highlighting. The fifth and sixth lines should appear indented
          to the right, aligning under <code><span class="identifier">main</span></code>,
          on line 3.
        </p>
        <p>
          Here's a one line function definitition:
        </p>
<pre class="programlisting">void something(); </pre>
        <p>
          .
        </p>
        <p>
          And some indented code:
        </p>
<pre class="programlisting">void go()
    {
    }
</pre>
      </div>
    </div>
  </body>
</html>