John Maddock wrote:
Quick question: how do I "turn off" syntax highlighting, and "turn on" my own syntax for a short code snippet, contained within a larger code chunk, for example I have:

template <class T>
struct is_void : public true-or-false-type {};

And I would like the "true-or-false-type" bit to be in italic, and otherwise not highlighted. However the usual mark-up with /text/ or ['text] fails to work. This is quite a common requirement for things that are "unspecified", "implementation defined", or named-concepts etc, can it be done?

Thomas Guest was working on dynamically loadable syntax highlighters. His work provides the ability to write customized syntax highlighters and would help you here.


However, his work hasn't been integrated into CVS. We've been discussing this and other features to be added and are still working on the details.

For now, I guess, you have two choices: you can escape to BoostBook markup and hand-highlight your code (I know, not too pretty), or you can wait just a little bit longer (there's no telling how long, though :( ).

Here's a peek at the features being discussed:

    * support for including external files (quickbook or code)
      status: James Fowler implemented, not in CVS.

    * dynamically loading syntax highlighters' definitions (includes
      support for custom highlighters)
      status: Thomas Guest implemented, not in CVS

    * collectors (see Joel's post on Literate Programming)
      status: draft proposal, working out details and interaction
      with other features

    * scripting support
      status: has been discussed... In the end, this should mostly reuse
      other features. A prototype implementation reusing collectors and
      (very-)extended macros should be possible, but...

As I said, right now, there isn't a time frame. Perhaps we should get our act together, people?

Best,


Jo�o


------------------------------------------------------- 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