quickbook/test/code-1_1.gold-html

92 lines
3.4 KiB
Plaintext

<!DOCTYPE html>
<html>
<head></head>
<body>
<h3>
Code Block
</h3>
<div class="toc">
<p>
<b>Table of contents</b>
</p>
<ul>
<li>
<a href="#code_block.test_1">Test 1</a>
</li>
<li>
<a href="#code_block.test_2">Test 2</a>
</li>
<li>
<a href="#code_block.test_3">Test 3</a>
</li>
<li>
<a href="#code_block.test_4">Test 4</a>
</li>
</ul>
</div>
<div id="code_block.test_1">
<h3>
Test 1
</h3>
<div id="code_block.test_1">
<p>
A code block with proper indentation ;-)
</p>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iostream</span><span class="special">&gt;</span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
<span class="special">{</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">&quot;Hello, World!&quot;</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="keyword">return</span> <span class="number">0</span><span class="special">;</span>
<span class="special">}</span>
</pre>
</div>
</div>
<div id="code_block.test_2">
<h3>
Test 2
</h3>
<div id="code_block.test_2">
<p>
A code block with proper indentation ;-)
</p>
<p>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iostream</span><span class="special">&gt;</span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
<span class="special">{</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">&quot;Hello, World!&quot;</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="keyword">return</span> <span class="number">0</span><span class="special">;</span>
<span class="special">}</span>
</pre>
</p>
</div>
</div>
<div id="code_block.test_3">
<h3>
Test 3
</h3>
<div id="code_block.test_3">
<p>
<pre class="programlisting"><span class="keyword">print</span> <span class="string">&quot;\xfabln\xeck&quot;</span>
</pre>
</p>
</div>
</div>
<div id="code_block.test_4">
<h3>
Test 4
</h3>
<div id="code_block.test_4">
<p>
This isn't valid C++ but I think we should accept it;
</p>
<p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span><span class="special">&lt;&lt;</span><span class="string">&quot;\xfabln\xeck&quot;</span><span class="special">&lt;&lt;</span><span class="string">&quot;\n&quot;</span><span class="special">;</span>
</pre>
</p>
</div>
</div>
</body>
</html>