]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/test/preformatted-1_1.quickbook
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / quickbook / test / preformatted-1_1.quickbook
1 [article Preformatted
2 ]
3
4 [section Preformatted]
5
6 Here's the ubiquitous /Hello World/ program in C++.
7
8 [pre
9 #include <iostream>
10
11 int main()
12 {
13 std::cout << "Hello, World!" << std::endl;
14 return 0;
15 }
16 ]
17
18 The code should appear as a single block of code in a monospaced font and with
19 no syntax highlighting. The fifth and sixth lines should appear indented to the
20 right, aligning under `main`, on line 3.
21
22 Here's a one line function definitition: [pre void something(); ].
23
24 And some indented code:
25
26 [pre
27 void go()
28 {
29 }
30 ]
31
32 [endsect]