John Maddock wrote:
> Joel de Guzman wrote:
>> It's intended but to be honest, I'm not quite happy with it.
>> The # is generated for those characters that are not recognized
>> by the code lexer. $ is not valid c++, nor ', depending on where
>> it is found. Any better suggestion on how to deal with this is
>> very welcome. These critters are handled by syntax_highlight.hpp
>> Unexpected action (line 217 actions.cpp).
> 
> Well I admit I was abusing code blocks to display regexes and other 
> command-line-like information.
> 
> I would have expected maybe a warning, but then to go on and display the 
> character as it is.  No warning but displaying a # seems like the worst of 
> all worlds ?

Ok. Noted.

> I was also trying to put a literal ` inside a code block but couldn'y find a 
> way to do it.

Maybe we want another code mode? Ideally the syntax-highlighter lexer
should be regexes so one can define his own mode when needed. That feature
is in the todo list.

Regards,
-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to