Thomas Guest wrote:

I thought it was worth getting a prototype version of the much-discussed
"QuickBook + extensible syntax highlighting" out for comment.
...
Comments welcome. As you can see, there's stuff to do.

I think the " " bit may be significant.  In the output I'm seeing,
some of the spaces (and newlines!) disappear, for example:

#include<boost/stacktrack/stacktrack.hpp>#include<iostream>// sets up this source file for ...

I would greatly welcome any help with getting this building using Bjam. It really should be
straightforward! We just need to link with Boost regex.


I've got it working (with MSVC7.1), although I had to switch to
"link=static".   The linker chokes and can't find
re_detail::...win32...class_map and lower_case_map for shared
libraries.  grrrr.  Here's what my Jamfile.v2 looks like:

    exe quickbook
        :   detail/quickbook.cpp detail/syntax_highlight.cpp
    detail/load_syntax_highlight.cpp /boost/regex /boost/program_options
        :   <include>$(BOOST_ROOT)
        ;

I like Reece's suggestion that the correct way to handle dynamic highlighting is
1) to implement a QuickBook include mechanism and


I think I've got that much done (i.e., needs more testing but works so
far), and tracking the BOOST_ROOT environment variable so
quickbook::detail::load() peek in $(BOOST_ROOT)/tools/quickbook if
doesn't find it's target locally.  Which means it's also working for
loading your .hlt file, since you used quickbook::detail::load().  Wanna
copy? :)  (I'll try and package it up tonight)

2) to define the dynamic highlighting schemes inline, ...

Maybe someone else wants to run with that?

...
Despite this, I hope my syntax highlight grammar and Boost regex based markup
scheme can be of use.


Oh, I think this will be quite useful...

- james

--
__________________________________________________________
 James Fowler, Open Sea Consulting
 http://www.OpenSeaConsulting.com, Marietta, Georgia, USA
 Do C++ Right.  http://www.OpenCpp.org, opening soon!



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to