Author |
Topic |
|
e-milio
New Member
2 Posts |
Posted - Jul 23 2010 : 2:00:59 PM
|
Hi, my question is simple, I want to turnoff the macro checking on VA X, to avoid unprocessing from source parsing, i.e.:
#ifdef MY_COMPILATION_FLAG ... Inactive pre-processor block #endif
So I want to VA X parse the source under #ifdef, totally independently from contex active macro. May is a VS option, any way I coudenG??t find it (IG??m using Visual Studio 2008 / Visual Assit 10.5).
Thanks in advance, e-milio. |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jul 23 2010 : 2:17:52 PM
|
Visual Assist parses both active and inactive blocks. However, Visual Studio is not. If you want to turn off graying out inactive source codes, you can do it:
IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color
But Visual Assist parses inactive blocks even when this option is active. The only thing you "lose" when this setting is active is syntax coloring (and it is solved in VS2010: it shows inactive code in paler color but with syntax coloring) |
|
|
e-milio
New Member
2 Posts |
Posted - Jul 23 2010 : 2:36:16 PM
|
Yes, after the post I've noticed that the parsing is done by VA but we lose syntax highlight, that a shame, one reason to think about changing to VS 2010 :P...
Thanks accord! e-milio. |
|
|
|
Topic |
|
|
|