James Fowler <boost_list <at> openseaconsulting.com> writes: > > 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 ...
James, Thanks for this. I don't think it will be too hard to sort out once I work out the exact requirement. Trouble is, I'm an XML novice (that's why I use QuickBook!) Could you please post the actual .qbk which exposes this problem (or email me at thomas dot guest at gmail dot com)? Incidentally, I've tweaked my proposal -- sorted out a few typos, added a little more detail. http://homepage.ntlworld.com/thomas.guest/qbk_proposal/ > >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: If you could also post the actual command you type to kick the build off, that would help me. Really, I need to read the Boost build notes carefully. > > 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) Good stuff! I'll happily take a look. > >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... Me too. Thomas > > - james > ------------------------------------------------------- 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
