| <?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> |