boost::hs::quickbook is a syntax highlighting designed to work with Katepart. It can be used in KWrite, Kate, Konqueror and KDevelop, and supports all the constructs of Quickbook 1.4 including tables, list, templates and macros.
html generated from this .qbk file
Table 15.1. Code examples
Name |
Code |
Description |
---|---|---|
for loop |
|
Sums some numbers. |
while loop |
|
Same effect. |
infinite loop |
|
Not a good example. |
boost::hs goes far beyond simple coloring. One useful thing you can get the editor to do is to mark regions. They appear in a small grey line and each region can be folded or unfolded independently.
Another important feature is the possibility to auto-comment or uncomment some piece of code (Tools - Comment). Commented regions can be uncommented simple calling the uncomment command while being in it.
Name |
Style |
Description |
---|---|---|
|
normal black |
Plain text at each level. |
|
formatted black |
Bold, italic, underline and mixes. Teletype, replaceable, strikeout. |
|
light blue |
All quickbook structures characters ([, ], [block-type, simple formating boundaries, lists keywords (*, #) |
|
red |
Names in macro definitions, macros insertion if it is used the __xxx__ proposed sintaxis. |
|
red |
Names in template definitions |
|
red |
All the keywords that are used to link quickbooks together. |
|
italic light gray |
Inside the commentaries. |
|
HTML like |
Reveal the structure, bold title, higlighted HTML like columns titles. |
|
HTML like |
Reveal the structure, bold title, bold HTML like items names. |
|
cpp Kate syntax |
Code blocks and inline code. |
|
green |
Image, files and web paths |
|
dark blue |
IDE commands |
boost::hs::quickbook is a component of boost::hs, a syntax highlighting for C++, doxygen, Boost.Build jamfiles and QuickBook. boost::hs has his own page here.
Note | |
---|---|
boost::hs::cpp support QuickBook code import comments style! |
There exist an ongoing effort to push boost::hs upstream to the KatePart project. In a few months KDE may have native Quickbook support! For the moment you must download and install it.
You can download boost::hs from here.
Note | |
---|---|
A copy of boost::hs::quickbook and boost::hs::cpp is available in |
In order to install it you must copy the content in the folder katepart/syntax/ to the appropriate katepart syntax folder in your machine. In general this folder will be in /usr/share/apps/katepart/syntax. A bash script named install.sh is included that copy the files to this folder.