1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
3 <article id="preformatted" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
4 xmlns:xi="http://www.w3.org/2001/XInclude">
5 <title>Preformatted</title>
6 <section id="preformatted.preformatted">
7 <title><link linkend="preformatted.preformatted">Preformatted</link></title>
9 Here's the ubiquitous <emphasis>Hello World</emphasis> program in C++.
11 <programlisting>#include <iostream>
15 std::cout << "Hello, World!" << std::endl;
20 The code should appear as a single block of code in a monospaced font and with
21 no syntax highlighting. The fifth and sixth lines should appear indented to
22 the right, aligning under <code><phrase role="identifier">main</phrase></code>,
26 Here's a one line function definitition:
28 <programlisting>void something(); </programlisting>
33 And some indented code:
35 <programlisting> void go()