3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Editor Support</title>
5 <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../quickbook.html" title="Chapter 37. Quickbook 1.5">
9 <link rel="prev" href="install.html" title="Installation and configuration">
10 <link rel="next" href="faq.html" title="Frequently Asked Questions">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
15 <td align="center"><a href="../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="install.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../quickbook.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="faq.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="quickbook.editors"></a>Editor Support</h2></div></div></div>
29 <dt><span class="section"><a href="editors.html#quickbook.editors.scite">Scintilla Text Editor</a></span></dt>
30 <dt><span class="section"><a href="editors.html#editor_support.kde_support">KDE Support</a></span></dt>
33 Editing quickbook files is usually done with text editors both simple and powerful.
34 The following sections list the settings for some editors which can help make
35 editing quickbook files a bit easier.
37 <div class="note"><table border="0" summary="Note">
39 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../doc/src/images/note.png"></td>
40 <th align="left">Note</th>
42 <tr><td align="left" valign="top"><p>
43 You may submit your settings, tips, and suggestions to the authors, or through
44 the <a href="https://lists.sourceforge.net/lists/listinfo/boost-" target="_top">docs
45 Boost Docs mailing list</a>.
49 <div class="titlepage"><div><div><h3 class="title">
50 <a name="quickbook.editors.scite"></a><a class="link" href="editors.html#quickbook.editors.scite" title="Scintilla Text Editor">Scintilla Text Editor</a>
51 </h3></div></div></div>
52 <div class="blockquote"><blockquote class="blockquote"><p>
53 <span class="emphasis"><em>Section contributed by Dean Michael Berris</em></span>
54 </p></blockquote></div>
56 The Scintilla Text Editor (SciTE) is a free source code editor for Win32
57 and X. It uses the SCIntilla source code editing component.
59 <div class="tip"><table border="0" summary="Tip">
61 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../doc/src/images/tip.png"></td>
62 <th align="left">Tip</th>
64 <tr><td align="left" valign="top"><p>
65 SciTE can be downloaded from <a href="http://www.scintilla.org/SciTE.html" target="_top">http://www.scintilla.org/SciTE.html</a>
69 You can use the following settings to highlight quickbook tags when editing
72 <pre class="programlisting">qbk=*.qbk
77 style.props.32=$(font.base)
78 comment.stream.start.props=[/
79 comment.stream.end.props=]
80 comment.box.start.props=[/
81 comment.box.middle.props=
82 comment.box.end.props=]
84 <div class="note"><table border="0" summary="Note">
86 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../doc/src/images/note.png"></td>
87 <th align="left">Note</th>
89 <tr><td align="left" valign="top"><p>
90 Thanks to Rene Rivera for the above SciTE settings.
95 <div class="titlepage"><div><div><h3 class="title">
96 <a name="editor_support.kde_support"></a><a class="link" href="editors.html#editor_support.kde_support" title="KDE Support">KDE Support</a>
97 </h3></div></div></div>
99 <a name="editor_support.kde_support.h0"></a>
100 <span><a name="editor_support.kde_support.boost__hs__quickbook"></a></span><a class="link" href="editors.html#editor_support.kde_support.boost__hs__quickbook">boost::hs::quickbook</a>
103 boost::hs::quickbook is a syntax highlighting designed to work with Katepart.
104 It can be used in KWrite, Kate, Konqueror and KDevelop, and supports all
105 the constructs of Quickbook 1.4 including tables, list, templates and macros.
107 <div class="variablelist">
108 <p class="title"><b></b></p>
110 <dt><span class="term">.qbk loaded in a text editor</span></dt>
112 <span class="inlinemediaobject"><img src="../../../tools/quickbook/doc/html/images/extra/katepart/table.text.editor.png"></span>
114 <dt><span class="term">.qbk loaded with boost::hs support</span></dt>
116 <span class="inlinemediaobject"><img src="../../../tools/quickbook/doc/html/images/extra/katepart/table.boost.hs.png"></span>
121 <span class="bold"><strong>html generated from this .qbk file</strong></span>
124 <a name="editor_support.kde_support.code_examples"></a><p class="title"><b>Table 37.7. Code examples</b></p>
125 <div class="table-contents"><table class="table" summary="Code examples">
157 <code class="computeroutput"> for(int k=0; k<10; k++) v+=k; </code>
174 <code class="computeroutput"> { int k; while( k < 10 ) { v+=k; k++ } } </code>
191 <code class="computeroutput"> while( true ) { v+=1; } </code>
203 <br class="table-break"><h4>
204 <a name="editor_support.kde_support.h1"></a>
205 <span><a name="editor_support.kde_support.code_folding_"></a></span><a class="link" href="editors.html#editor_support.kde_support.code_folding_">Code
209 boost::hs goes far beyond simple coloring. One useful thing you can get the
210 editor to do is to mark regions. They appear in a small grey line and each
211 region can be folded or unfolded independently.
214 <a name="editor_support.kde_support.h2"></a>
215 <span><a name="editor_support.kde_support.auto_comment___uncomment_"></a></span><a class="link" href="editors.html#editor_support.kde_support.auto_comment___uncomment_">Auto Comment
219 Another important feature is the possibility to auto-comment or uncomment
220 some piece of code (<span class="emphasis"><em>Tools - Comment</em></span>). Commented regions
221 can be uncommented simple calling the <span class="emphasis"><em>uncomment</em></span> command
225 <a name="editor_support.kde_support.h3"></a>
226 <span><a name="editor_support.kde_support.styles_reference_"></a></span><a class="link" href="editors.html#editor_support.kde_support.styles_reference_">Styles
229 <div class="informaltable"><table class="table">
256 <span class="bold"><strong>plain text</strong></span>
266 Plain text at each level.
273 <span class="bold"><strong>formatted text</strong></span>
283 Bold, italic, underline and mixes. Teletype, replaceable, strikeout.
290 <span class="bold"><strong>structure</strong></span>
300 All quickbook structures characters ([, ], [block-type, simple
301 formating boundaries, lists keywords (*, #)
308 <span class="bold"><strong>macros</strong></span>
318 Names in macro definitions, macros insertion if it is used the
319 __xxx__ proposed sintaxis.
326 <span class="bold"><strong>templates</strong></span>
336 Names in template definitions
343 <span class="bold"><strong>anchors</strong></span>
353 All the keywords that are used to link quickbooks together.
360 <span class="bold"><strong>comments</strong></span>
370 Inside the commentaries.
377 <span class="bold"><strong>tables</strong></span>
387 Reveal the structure, bold title, higlighted HTML like columns
395 <span class="bold"><strong>variable lists</strong></span>
405 Reveal the structure, bold title, bold HTML like items names.
412 <span class="bold"><strong>c++ code</strong></span>
422 Code blocks and inline code.
429 <span class="bold"><strong>paths</strong></span>
439 Image, files and web paths
446 <span class="bold"><strong>IDE specific</strong></span>
463 <a name="editor_support.kde_support.h4"></a>
464 <span><a name="editor_support.kde_support.about_boost__hs"></a></span><a class="link" href="editors.html#editor_support.kde_support.about_boost__hs">About
468 <span class="inlinemediaobject"><img src="../../../tools/quickbook/doc/html/images/extra/katepart/boost.hs.logo.png"></span>
471 boost::hs::quickbook is a component of boost::hs, a syntax highlighting for
472 C++, doxygen, Boost.Build jamfiles and QuickBook. boost::hs has his own page
473 <a href="http://tinyurl.com/2l7u33" target="_top">here</a>.
475 <div class="note"><table border="0" summary="Note">
477 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../doc/src/images/note.png"></td>
478 <th align="left">Note</th>
480 <tr><td align="left" valign="top"><p>
481 boost::hs::cpp support QuickBook code import comments style!
485 <a name="editor_support.kde_support.h5"></a>
486 <span><a name="editor_support.kde_support.installing_boost__hs"></a></span><a class="link" href="editors.html#editor_support.kde_support.installing_boost__hs">Installing
490 There exist an ongoing effort to push boost::hs upstream to the KatePart
491 project. In a few months KDE may have native Quickbook support! For the moment
492 you must download and install it.
495 You can download boost::hs from <a href="http://matias.capeletto.googlepages.com/boost_hs.zip" target="_top">here</a>.
497 <div class="note"><table border="0" summary="Note">
499 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../doc/src/images/note.png"></td>
500 <th align="left">Note</th>
502 <tr><td align="left" valign="top"><p>
503 A copy of boost::hs::quickbook and boost::hs::cpp is available in <code class="computeroutput">boost/tools/quickbook/extra/katepart</code>.
507 In order to install it you must copy the content in the folder <span class="bold"><strong>katepart/syntax/</strong></span> to the appropriate katepart syntax
508 folder in your machine. In general this folder will be in <span class="bold"><strong>/usr/share/apps/katepart/syntax</strong></span>.
509 A bash script named <span class="emphasis"><em>install.sh</em></span> is included that copy
510 the files to this folder.
514 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
515 <td align="left"></td>
516 <td align="right"><div class="copyright-footer">Copyright © 2002, 2004, 2006 Joel de Guzman,
517 Eric Niebler<br>Copyright © 2010, 2011 Daniel James<p>
518 Distributed under the Boost Software License, Version 1.0. (See accompanying
519 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
524 <div class="spirit-nav">
525 <a accesskey="p" href="install.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../quickbook.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="faq.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>