• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="code_snippets" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
4 xmlns:xi="http://www.w3.org/2001/XInclude">
5  <title>Code Snippets</title>
6  <section id="code_snippets.a_code_snippet">
7    <title>A code snippet</title>
8    <para>
9      Code snippets inlined in text, as in <code><phrase role="keyword">namespace</phrase>
10      <phrase role="identifier">quickbook</phrase> <phrase role="special">{</phrase>
11      <phrase role="keyword">static</phrase> <phrase role="keyword">const</phrase>
12      <phrase role="keyword">int</phrase> <phrase role="identifier">value</phrase>
13      <phrase role="special">=</phrase> <phrase role="number">0</phrase><phrase role="special">;</phrase>
14      <phrase role="special">}</phrase></code>, should be properly formatted and
15      not glued to the surrounding text.
16    </para>
17    <para>
18      There shoud be no spacees around (<code><phrase role="keyword">this</phrase></code>),
19      and spaces around <code><phrase role="keyword">this</phrase></code> code.
20    </para>
21  </section>
22</article>
23