mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-27 07:02:15 +00:00
Merge with the offending files removed.
[SVN r39995]
This commit is contained in:
@@ -386,7 +386,7 @@ namespace quickbook
|
||||
;
|
||||
|
||||
paragraph_end =
|
||||
'[' >> space >> paragraph_end_markups | eol >> eol
|
||||
'[' >> space >> paragraph_end_markups >> hard_space | eol >> eol
|
||||
;
|
||||
|
||||
paragraph =
|
||||
|
||||
@@ -72,7 +72,10 @@ namespace quickbook
|
||||
*blank_p >> "//<-"
|
||||
>> (*(anychar_p - "//->"))
|
||||
>> "//->" >> *blank_p >> eol_p
|
||||
| "/*<-"
|
||||
| "/*<-*/"
|
||||
>> (*(anychar_p - "/*->*/"))
|
||||
>> "/*->*/"
|
||||
| "/*<-"
|
||||
>> (*(anychar_p - "->*/"))
|
||||
>> "->*/"
|
||||
;
|
||||
|
||||
@@ -35,16 +35,16 @@ namespace quickbook { namespace /*unnamed*/
|
||||
const char* blockquote_post = "</para></blockquote>";
|
||||
const char* preformatted_pre = "<programlisting>";
|
||||
const char* preformatted_post = "</programlisting>";
|
||||
const char* warning_pre = "<warning><para>";
|
||||
const char* warning_post = "</para></warning>";
|
||||
const char* caution_pre = "<caution><para>";
|
||||
const char* caution_post = "</para></caution>";
|
||||
const char* important_pre = "<important><para>";
|
||||
const char* important_post = "</para></important>";
|
||||
const char* note_pre = "<note><para>";
|
||||
const char* note_post = "</para></note>";
|
||||
const char* tip_pre = "<tip><para>";
|
||||
const char* tip_post = "</para></tip>";
|
||||
const char* warning_pre = "<warning>";
|
||||
const char* warning_post = "</warning>";
|
||||
const char* caution_pre = "<caution>";
|
||||
const char* caution_post = "</caution>";
|
||||
const char* important_pre = "<important>";
|
||||
const char* important_post = "</important>";
|
||||
const char* note_pre = "<note>";
|
||||
const char* note_post = "</note>";
|
||||
const char* tip_pre = "<tip>";
|
||||
const char* tip_post = "</tip>";
|
||||
const char* list_item_pre = "<listitem>\n";
|
||||
const char* list_item_post = "\n</listitem>";
|
||||
const char* bold_pre_ = "<emphasis role=\"bold\">";
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: August 01, 2007 at 23:43:11 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: September 24, 2007 at 06:00:48 GMT</small></p></td>
|
||||
<td align="right"><small></small></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="quickbook.editors.kde_support"></a><a href="kde_support.html" title="KDE Support">KDE Support</a></h3></div></div></div>
|
||||
<a name="quickbook.editors.kde_support.boost__hs__quickbook"></a><h4>
|
||||
<a name="id466174"></a>
|
||||
<a name="id466294"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.boost__hs__quickbook">boost::hs::quickbook</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -51,7 +51,7 @@
|
||||
<span class="bold"><b>html generated from this .qbk file</b></span>
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id466275"></a><p class="title"><b>Table 7. Code examples</b></p>
|
||||
<a name="id466395"></a><p class="title"><b>Table 7. Code examples</b></p>
|
||||
<table class="table" summary="Code examples">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -140,7 +140,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="quickbook.editors.kde_support.code_folding_"></a><h4>
|
||||
<a name="id466682"></a>
|
||||
<a name="id466802"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.code_folding_">Code Folding
|
||||
</a>
|
||||
</h4>
|
||||
@@ -150,7 +150,7 @@
|
||||
region can be folded or unfolded independently.
|
||||
</p>
|
||||
<a name="quickbook.editors.kde_support.auto_comment___uncomment_"></a><h4>
|
||||
<a name="id466714"></a>
|
||||
<a name="id466834"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.auto_comment___uncomment_">Auto
|
||||
Comment / Uncomment </a>
|
||||
</h4>
|
||||
@@ -161,7 +161,7 @@
|
||||
while being in it.
|
||||
</p>
|
||||
<a name="quickbook.editors.kde_support.styles_reference_"></a><h4>
|
||||
<a name="id466756"></a>
|
||||
<a name="id466876"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.styles_reference_">Styles reference
|
||||
</a>
|
||||
</h4>
|
||||
@@ -398,7 +398,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="quickbook.editors.kde_support.about_boost__hs"></a><h4>
|
||||
<a name="id467204"></a>
|
||||
<a name="id467324"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.about_boost__hs">About boost::hs</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -414,18 +414,12 @@
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
boost::hs::cpp support QuickBook code import comments style!
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
boost::hs::cpp support QuickBook code import comments style!
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<a name="quickbook.editors.kde_support.installing_boost__hs"></a><h4>
|
||||
<a name="id467275"></a>
|
||||
<a name="id467392"></a>
|
||||
<a href="kde_support.html#quickbook.editors.kde_support.installing_boost__hs">Installing
|
||||
boost::hs</a>
|
||||
</h4>
|
||||
@@ -442,15 +436,9 @@
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
A copy of boost::hs::quickbook and boost::hs::cpp is available in <tt class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">tools</span><span class="special">/</span><span class="identifier">quickbook</span><span class="special">/</span><span class="identifier">extra</span><span class="special">/</span><span class="identifier">katepart</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
A copy of boost::hs::quickbook and boost::hs::cpp is available in <tt class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">tools</span><span class="special">/</span><span class="identifier">quickbook</span><span class="special">/</span><span class="identifier">extra</span><span class="special">/</span><span class="identifier">katepart</span></tt>.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
In order to install it you must copy the content in the folder <span class="bold"><b>katepart/syntax/</b></span> to the appropriate katepart syntax
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="quickbook.faq"></a><a href="faq.html" title=" Frequently Asked Questions"> Frequently Asked Questions</a></h2></div></div></div>
|
||||
<a name="quickbook.faq.can_i_use_quickbook_for_non_boost_documentation_"></a><h3>
|
||||
<a name="id467431"></a>
|
||||
<a name="id467544"></a>
|
||||
<a href="faq.html#quickbook.faq.can_i_use_quickbook_for_non_boost_documentation_">Can
|
||||
I use QuickBook for non-Boost documentation?</a>
|
||||
</h3>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
[cpp]
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id467529"></a><p class="title"><b>Table 8. Syntax Compendium</b></p>
|
||||
<a name="id467642"></a><p class="title"><b>Table 8. Syntax Compendium</b></p>
|
||||
<table class="table" summary="Syntax Compendium">
|
||||
<colgroup>
|
||||
<col>
|
||||
|
||||
@@ -587,75 +587,45 @@
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
This is a note
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
This is a note
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<div class="tip"><table border="0" summary="Tip">
|
||||
<tr>
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../doc/html/images/tip.png"></td>
|
||||
<th align="left">Tip</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
This is a tip
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
This is a tip
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<div class="important"><table border="0" summary="Important">
|
||||
<tr>
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../doc/html/images/important.png"></td>
|
||||
<th align="left">Important</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
This is important
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
This is important
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<div class="caution"><table border="0" summary="Caution">
|
||||
<tr>
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../../doc/html/images/caution.png"></td>
|
||||
<th align="left">Caution</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
This is a caution
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
This is a caution
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<div class="warning"><table border="0" summary="Warning">
|
||||
<tr>
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../doc/html/images/warning.png"></td>
|
||||
<th align="left">Warning</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
This is a warning
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
This is a warning
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
These are the only admonitions supported by <a href="http://www.docbook.org/" target="_top">DocBook</a>.
|
||||
@@ -674,27 +644,27 @@
|
||||
[h6 Heading 6]
|
||||
</pre>
|
||||
<a name="quickbook.syntax.block.headings.heading_1"></a><h1>
|
||||
<a name="id459586"></a>
|
||||
<a name="id459550"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_1">Heading 1</a>
|
||||
</h1>
|
||||
<a name="quickbook.syntax.block.headings.heading_2"></a><h2>
|
||||
<a name="id459611"></a>
|
||||
<a name="id459574"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_2">Heading 2</a>
|
||||
</h2>
|
||||
<a name="quickbook.syntax.block.headings.heading_3"></a><h3>
|
||||
<a name="id459635"></a>
|
||||
<a name="id459598"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_3">Heading 3</a>
|
||||
</h3>
|
||||
<a name="quickbook.syntax.block.headings.heading_4"></a><h4>
|
||||
<a name="id459660"></a>
|
||||
<a name="id459623"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_4">Heading 4</a>
|
||||
</h4>
|
||||
<a name="quickbook.syntax.block.headings.heading_5"></a><h5>
|
||||
<a name="id459685"></a>
|
||||
<a name="id459648"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_5">Heading 5</a>
|
||||
</h5>
|
||||
<a name="quickbook.syntax.block.headings.heading_6"></a><h5>
|
||||
<a name="id459710"></a>
|
||||
<a name="id459673"></a>
|
||||
<a href="block.html#quickbook.syntax.block.headings.heading_6">Heading 6</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -787,18 +757,12 @@ sf_logo
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../doc/html/images/tip.png"></td>
|
||||
<th align="left">Tip</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
It's a good idea to use macro identifiers that are distinguishable.
|
||||
For instance, in this document, macro identifiers have two leading
|
||||
and trailing underscores (e.g. <tt class="literal">__spirit__</tt>). The reason is
|
||||
to avoid unwanted macro replacement.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
It's a good idea to use macro identifiers that are distinguishable. For
|
||||
instance, in this document, macro identifiers have two leading and trailing
|
||||
underscores (e.g. <tt class="literal">__spirit__</tt>). The reason is to avoid unwanted
|
||||
macro replacement.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
Links (URLS) and images are good candidates for macros. <span class="bold"><b>1</b></span>)
|
||||
@@ -838,7 +802,7 @@ sf_logo
|
||||
Quickbook has some predefined macros that you can already use.
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id460170"></a><p class="title"><b>Table 3. Predefined Macros</b></p>
|
||||
<a name="id460123"></a><p class="title"><b>Table 3. Predefined Macros</b></p>
|
||||
<table class="table" summary="Predefined Macros">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -876,7 +840,7 @@ sf_logo
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
2007-Aug-02
|
||||
2007-Sep-24
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -893,7 +857,7 @@ sf_logo
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
07:43:11 AM
|
||||
02:00:48 PM
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -939,7 +903,7 @@ Hi, my name is [name]. I am [age] years old. I am a [what].
|
||||
]
|
||||
</pre>
|
||||
<a name="quickbook.syntax.block.templates.template_identifier"></a><h5>
|
||||
<a name="id460350"></a>
|
||||
<a name="id460303"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.template_identifier">Template
|
||||
Identifier</a>
|
||||
</h5>
|
||||
@@ -957,7 +921,7 @@ Hi, my name is [name]. I am [age] years old. I am a [what].
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="quickbook.syntax.block.templates.formal_template_arguments"></a><h5>
|
||||
<a name="id460397"></a>
|
||||
<a name="id460350"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.formal_template_arguments">Formal
|
||||
Template Arguments</a>
|
||||
</h5>
|
||||
@@ -977,7 +941,7 @@ Hi, my name is [name]. I am [age] years old. I am a [what].
|
||||
of the template call.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.templates.template_body"></a><h5>
|
||||
<a name="id460516"></a>
|
||||
<a name="id460469"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.template_body">Template
|
||||
Body</a>
|
||||
</h5>
|
||||
@@ -1002,7 +966,7 @@ replacement text...
|
||||
block level elements are not allowed in phrase templates.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.templates.template_expansion"></a><h5>
|
||||
<a name="id460575"></a>
|
||||
<a name="id460528"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.template_expansion">Template
|
||||
Expansion</a>
|
||||
</h5>
|
||||
@@ -1038,19 +1002,13 @@ replacement text...
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../../doc/html/images/caution.png"></td>
|
||||
<th align="left">Caution</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
A word of caution: Templates are recursive. A template can call another
|
||||
template or even itself, directly or indirectly. There are no control
|
||||
structures in QuickBook (yet) so this will always mean infinite recursion.
|
||||
QuickBook can detect this situation and report an error if recursion
|
||||
exceeds a certain limit.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
A word of caution: Templates are recursive. A template can call another
|
||||
template or even itself, directly or indirectly. There are no control
|
||||
structures in QuickBook (yet) so this will always mean infinite recursion.
|
||||
QuickBook can detect this situation and report an error if recursion
|
||||
exceeds a certain limit.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
Each actual argument can be a word, a text fragment or just about any
|
||||
@@ -1059,7 +1017,7 @@ replacement text...
|
||||
by the close parenthesis.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.templates.nullary_templates"></a><h5>
|
||||
<a name="id460678"></a>
|
||||
<a name="id460634"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.nullary_templates">Nullary
|
||||
Templates</a>
|
||||
</h5>
|
||||
@@ -1142,7 +1100,7 @@ for the journey to old age.]]]
|
||||
brackets, though.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.templates.simple_arguments"></a><h5>
|
||||
<a name="id460912"></a>
|
||||
<a name="id385004"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.simple_arguments">Simple
|
||||
Arguments</a>
|
||||
</h5>
|
||||
@@ -1210,7 +1168,7 @@ for the journey to old age.]]]
|
||||
what do you think man?
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.templates.punctuation_templates"></a><h5>
|
||||
<a name="id461083"></a>
|
||||
<a name="id461175"></a>
|
||||
<a href="block.html#quickbook.syntax.block.templates.punctuation_templates">Punctuation
|
||||
Templates</a>
|
||||
</h5>
|
||||
@@ -1266,16 +1224,10 @@ for the journey to old age.]]]
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
Prefer <a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">admonitions</a>
|
||||
wherever appropriate.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
Prefer <a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">admonitions</a>
|
||||
wherever appropriate.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
@@ -1292,7 +1244,7 @@ for the journey to old age.]]]
|
||||
will generate:
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id461289"></a><p class="title"><b>Table 4. A Simple Table</b></p>
|
||||
<a name="id461378"></a><p class="title"><b>Table 4. A Simple Table</b></p>
|
||||
<table class="table" summary="A Simple Table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -1403,7 +1355,7 @@ for the journey to old age.]]]
|
||||
and thus:
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id461453"></a><p class="title"><b>Table 5. Table with fat cells</b></p>
|
||||
<a name="id461542"></a><p class="title"><b>Table 5. Table with fat cells</b></p>
|
||||
<table class="table" summary="Table with fat cells">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -1478,7 +1430,7 @@ for the journey to old age.]]]
|
||||
]
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id461571"></a><p class="title"><b>Table 6. Table with code</b></p>
|
||||
<a name="id461660"></a><p class="title"><b>Table 6. Table with code</b></p>
|
||||
<table class="table" summary="Table with code">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -1618,7 +1570,7 @@ for the journey to old age.]]]
|
||||
QuickBook's import facility provides a nice solution.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.import.example"></a><h5>
|
||||
<a name="id461995"></a>
|
||||
<a name="id462084"></a>
|
||||
<a href="block.html#quickbook.syntax.block.import.example">Example</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -1724,7 +1676,7 @@ for the journey to old age.]]]
|
||||
<p>
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.import.code_snippet_markup"></a><h5>
|
||||
<a name="id462307"></a>
|
||||
<a name="id462396"></a>
|
||||
<a href="block.html#quickbook.syntax.block.import.code_snippet_markup">Code
|
||||
Snippet Markup</a>
|
||||
</h5>
|
||||
@@ -1745,7 +1697,7 @@ for the journey to old age.]]]
|
||||
This too will not be visible in quickbook.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.import.special_comments"></a><h5>
|
||||
<a name="id462433"></a>
|
||||
<a name="id462522"></a>
|
||||
<a href="block.html#quickbook.syntax.block.import.special_comments">Special
|
||||
Comments</a>
|
||||
</h5>
|
||||
@@ -1771,23 +1723,29 @@ for the journey to old age.]]]
|
||||
Special comments of the form:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="comment">/*<-- this will be ignored -->*/</span>
|
||||
<span class="comment">/*<- this C++ comment will be ignored ->*/</span>
|
||||
</pre>
|
||||
<p>
|
||||
or
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="comment">//<--
|
||||
<span class="comment">/*<-*/</span> <span class="string">"this c++ code will be ignored"</span> <span class="comment">/*->*/</span>
|
||||
</pre>
|
||||
<p>
|
||||
or
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="comment">//<-
|
||||
</span><span class="keyword">private</span><span class="special">:</span>
|
||||
<span class="keyword">int</span> <span class="identifier">some_member</span><span class="special">;</span>
|
||||
<span class="comment">//-->
|
||||
<span class="comment">//->
|
||||
</span></pre>
|
||||
<p>
|
||||
can be used to inhibit code from passing through to quickbook. All text
|
||||
between the delimeters will simply be ignored.
|
||||
</p>
|
||||
<a name="quickbook.syntax.block.import.callouts"></a><h5>
|
||||
<a name="id462581"></a>
|
||||
<a name="id462702"></a>
|
||||
<a href="block.html#quickbook.syntax.block.import.callouts">Callouts</a>
|
||||
</h5>
|
||||
<p>
|
||||
|
||||
@@ -412,17 +412,11 @@ And one for the little boy who lives down the lane.
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
We simply enclose the code with the tick: <tt class="literal">"`"</tt>, not
|
||||
the single quote: <tt class="computeroutput"><span class="string">"'"</span></tt>.
|
||||
Note too that <tt class="literal">`some code`</tt> is preferred over <tt class="literal">[^some code]</tt>.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
We simply enclose the code with the tick: <tt class="literal">"`"</tt>, not the
|
||||
single quote: <tt class="computeroutput"><span class="string">"'"</span></tt>.
|
||||
Note too that <tt class="literal">`some code`</tt> is preferred over <tt class="literal">[^some code]</tt>.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
@@ -501,7 +495,7 @@ C++ comment `// looks like this` whereas a Python comment [python]
|
||||
whereas a Python comment <tt class="computeroutput"><span class="comment">#looks like this</span></tt>.
|
||||
</p>
|
||||
<div class="table">
|
||||
<a name="id456959"></a><p class="title"><b>Table 2. Supported Source Modes</b></p>
|
||||
<a name="id456956"></a><p class="title"><b>Table 2. Supported Source Modes</b></p>
|
||||
<table class="table" summary="Supported Source Modes">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -552,15 +546,9 @@ C++ comment `// looks like this` whereas a Python comment [python]
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
|
||||
<th align="left">Note</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
The source mode strings are lowercase.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
The source mode strings are lowercase.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
@@ -573,18 +561,12 @@ C++ comment `// looks like this` whereas a Python comment [python]
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../doc/html/images/warning.png"></td>
|
||||
<th align="left">Warning</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="special">[</span><span class="identifier">br</span><span class="special">]</span></tt> is now deprecated. <a href="block.html#quickbook.syntax.block.blurbs" title="Blurbs">Blurbs</a>,
|
||||
<a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">Admonitions</a>
|
||||
and table cells (see <a href="block.html#quickbook.syntax.block.tables" title="Tables">Tables</a>)
|
||||
may now contain paragraphs.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
<tt class="computeroutput"><span class="special">[</span><span class="identifier">br</span><span class="special">]</span></tt> is now deprecated. <a href="block.html#quickbook.syntax.block.blurbs" title="Blurbs">Blurbs</a>,
|
||||
<a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">Admonitions</a>
|
||||
and table cells (see <a href="block.html#quickbook.syntax.block.tables" title="Tables">Tables</a>)
|
||||
may now contain paragraphs.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
@@ -717,15 +699,9 @@ escape (no processing/formatting)
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../doc/html/images/important.png"></td>
|
||||
<th align="left">Important</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
Be careful when using the escape. The text must conform to <a href="http://www.boost.org/doc/html/boostbook.html" target="_top">BoostBook</a>/<a href="http://www.docbook.org/" target="_top">DocBook</a> syntax.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
Be careful when using the escape. The text must conform to <a href="http://www.boost.org/doc/html/boostbook.html" target="_top">BoostBook</a>/<a href="http://www.docbook.org/" target="_top">DocBook</a> syntax.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
@@ -748,19 +724,13 @@ escape (no processing/formatting)
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../doc/html/images/warning.png"></td>
|
||||
<th align="left">Warning</th>
|
||||
</tr>
|
||||
<tr><td colspan="2" align="left" valign="top">
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">[</span><span class="identifier">br</span><span class="special">]</span></tt> are now deprecated. <a href="block.html#quickbook.syntax.block.blurbs" title="Blurbs">Blurbs</a>,
|
||||
<a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">Admonitions</a>
|
||||
and table cells (see <a href="block.html#quickbook.syntax.block.tables" title="Tables">Tables</a>)
|
||||
may now contain paragraphs.
|
||||
</p>
|
||||
<p>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="left" valign="top"><p>
|
||||
<tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">[</span><span class="identifier">br</span><span class="special">]</span></tt> are now deprecated. <a href="block.html#quickbook.syntax.block.blurbs" title="Blurbs">Blurbs</a>,
|
||||
<a href="block.html#quickbook.syntax.block.admonitions" title="Admonitions">Admonitions</a>
|
||||
and table cells (see <a href="block.html#quickbook.syntax.block.tables" title="Tables">Tables</a>)
|
||||
may now contain paragraphs.
|
||||
</p></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
The escaped space: <tt class="computeroutput"><span class="special">\</span> </tt> also
|
||||
@@ -791,7 +761,7 @@ escape (no processing/formatting)
|
||||
</pre>
|
||||
<p>
|
||||
will generate this
|
||||
<sup>[<a name="id457815" href="#ftn.id457815">2</a>]</sup>
|
||||
<sup>[<a name="id457797" href="#ftn.id457797">2</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<div class="section" lang="en">
|
||||
@@ -844,7 +814,7 @@ escape (no processing/formatting)
|
||||
</p>
|
||||
<p>
|
||||
Yes!
|
||||
<sup>[<a name="id457988" href="#ftn.id457988">3</a>]</sup>
|
||||
<sup>[<a name="id457969" href="#ftn.id457969">3</a>]</sup>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footnotes">
|
||||
@@ -856,10 +826,10 @@ escape (no processing/formatting)
|
||||
being more or less a formal EBNF parser, can handle the context sensitivity
|
||||
and ambiguity.
|
||||
</p></div>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id457815" href="#id457815">2</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id457797" href="#id457797">2</a>] </sup>
|
||||
A sample footnote
|
||||
</p></div>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id457988" href="#id457988">3</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id457969" href="#id457969">3</a>] </sup>
|
||||
Conditional Generation makes quickbook turing complete.
|
||||
</p></div>
|
||||
</div>
|
||||
|
||||
@@ -1705,14 +1705,18 @@ final star-slash shall be ignored.
|
||||
|
||||
Special comments of the form:
|
||||
|
||||
/*<-- this will be ignored -->*/
|
||||
/*<- this C++ comment will be ignored ->*/
|
||||
|
||||
or
|
||||
|
||||
//<--
|
||||
/*<-*/ "this c++ code will be ignored" /*->*/
|
||||
|
||||
or
|
||||
|
||||
//<-
|
||||
private:
|
||||
int some_member;
|
||||
//-->
|
||||
//->
|
||||
|
||||
can be used to inhibit code from passing through to quickbook. All text between
|
||||
the delimeters will simply be ignored.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<para>
|
||||
A code block with proper indentation ;-)
|
||||
</para>
|
||||
|
||||
|
||||
<programlisting>
|
||||
<phrase role="preprocessor">#include</phrase> <phrase role="special"><</phrase><phrase role="identifier">iostream</phrase><phrase role="special">></phrase>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
A code block with proper indentation ;-)
|
||||
</para>
|
||||
<para>
|
||||
|
||||
|
||||
<programlisting>
|
||||
<phrase role="preprocessor">#include</phrase> <phrase role="special"><</phrase><phrase role="identifier">iostream</phrase><phrase role="special">></phrase>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
And any quickbook block markup.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
|
||||
<programlisting>
|
||||
<phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">string</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase>
|
||||
<phrase role="special">{</phrase>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<para>
|
||||
Here's the ubiquitous <emphasis>Hello World</emphasis> program in C++.
|
||||
</para>
|
||||
|
||||
|
||||
<programlisting>#include <iostream>
|
||||
|
||||
int main()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -46,7 +46,7 @@
|
||||
wxyz wxyz trail
|
||||
</para>
|
||||
<para>
|
||||
|
||||
|
||||
<programlisting>
|
||||
<phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase>
|
||||
<phrase role="special">{</phrase>
|
||||
|
||||
Reference in New Issue
Block a user