summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/quickbook/test/source_mode-1_7.gold
blob: 2cc454a6dd31fdcdc5c2099c4aa090365615aa8f (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
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="source_mode_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
 xmlns:xi="http://www.w3.org/2001/XInclude">
  <title>Source Mode Test</title>
  <informaltable frame="all">
    <tgroup cols="2">
      <tbody>
        <row>
          <entry>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase></programlisting>
          </entry>
          <entry>
<programlisting><phrase role="keyword">void</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase></programlisting>
          </entry>
        </row>
      </tbody>
    </tgroup>
  </informaltable>
<programlisting>Plain text...</programlisting>
  <para>
    <code><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase
    role="special">()</phrase> <phrase role="special">{}</phrase></code> but <code>plain
    text</code>.
  </para>
  <itemizedlist>
    <listitem>
      <simpara>
        <code><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase
        role="special">()</phrase> <phrase role="special">{}</phrase></code>
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        <code><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase
        role="special">()</phrase> <phrase role="special">{}</phrase></code>
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        <code>int main() {}</code>
      </simpara>
    </listitem>
  </itemizedlist>
  <para>
    <code><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase
    role="special">()</phrase> <phrase role="special">{}</phrase></code> and <code><phrase
    role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase>
    <phrase role="special">{}</phrase></code> should both be C++ highlighted. <code>int
    main() {}</code> shouldn't be, but <code><phrase role="keyword">int</phrase>
    <phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase
    role="special">{}</phrase></code> should.
  </para>
  <para>
    <code><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase
    role="special">()</phrase> <phrase role="special">{}</phrase></code>. Not highlighted:
    <code>int main() {}</code>.
  </para>
  <section id="source_mode_test.cpp">
    <title><link linkend="source_mode_test.cpp">C++ section</link></title>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase></programlisting>
  </section>
</article>