[Geany] Using Geany to edit QuickBook/Boostbook files - has anyone done so?

Andy Elvey andy.elvey at xxxxx
Sat Jun 20 00:35:16 UTC 2009


Enrico Tröger wrote:
> On Fri, 19 Jun 2009 20:01:08 +1200, Andy wrote:
>
> Hey,
>
>   
>> I'm about to help out with doing some docs for Boost::Spirit (a parser 
>> lib that is part of Boost).
>>
>> I'll be using a tool called "QuickBook" which I believe  is very
>> similar to BoostBook.  Anyway, I found this section in the Boost
>> docs     about using the Scintilla editing component (which Geany
>> uses, iirc) to highlight Quickbook tags -
>> http://www.boost.org/doc/libs/1_39_0/doc/html/quickbook/editors.html
>>
>> It gives this snippet of code -
>>
>> qbk=*.qbk
>> lexer.*.qbk=props
>> use.tabs.$(qbk)=0
>> tab.size.$(qbk)=4
>> indent.size.$(qbk)=4
>> style.props.32=$(font.base)
>> comment.stream.start.props=[/
>> comment.stream.end.props=]
>> comment.box.start.props=[/
>> comment.box.middle.props=
>> comment.box.end.props=]
>>
>> b) In Geany's dir structure, where would I put the above code snippet
>> so that .qbk files are highlighted?  Is it in /geany-0.17/data (and do
>> I name the file "filetypes.quickbook"? ) 
>>     
>
> No, this won't work.
> The above snippet is for SciTE's config, Geany uses another config
> format and is incompatible.
> But the first thing you could try is setting the filetype in Geany to
> "Config File", this would have the same effect as "lexer.*.qbk=props"
> for SciTE. This means to enable Scintilla's Properties lexer which is
> generally used for config files (or properties files in Scintilla
> speak).
> This should highlight your sources in some way.
>
> If it works well enough, simply add "*.qbk;" to the "Conf" entry in your
> ~/.config/geany/filetype_extensions.conf to tell Geany to always use
> this filetype for .qbk files.
>
> And/or send us a link to some example files, maybe there is another
> filetype which fits better. I just don't have an idea how these files
> look like and so can't help much.
>
> Regards,
> Enrico
>
>   
Hi Enrico - thanks for that! 
Sounds good!  I'll do the above and should be fine taking things from 
there.  It should
be easy enough to copy one of the existing filetype files and "chop it 
around a bit"... :)

Oh, just for reference, this page may be useful for QuickBook.  It has a 
link to a QuickBook file
( quickbook.qbk ) which is a good example of what it looks like. 
http://www.boost.org/doc/libs/1_39_0/doc/html/quickbook.html#quickbook.intro

- Andy





More information about the Users mailing list