Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Colouring wrong with #ifdef
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ChrisWest
Junior Member

14 Posts

Posted - Sep 12 2008 :  7:10:49 PM  Show Profile  Reply with Quote
Hi There

Iam getting wrong colouring when I use #ifdef or #ifndef in my code. If the #define is in the cpp file then all is OK, but if its in a header file then it doesnt work.

ie
Header File has
#define SHOWCODE

and cpp has

#ifdef SHOWCODE
void Foo()
{ }
#else
void Foo1()
{ }
#endif

VA always shows Foo1 has highlighted for me. This is with 1649 build and Visual studio 2005.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 13 2008 :  07:05:13 AM  Show Profile  Reply with Quote
If you are talking about graying out inactive source code: it is an IDE feature, and not related to Visual Assist.
It is done by IDE's own Intellisense, so if you have turned off default intellisense (for example by renaming feacp.dll), it can be the reason.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Sep 15 2008 :  2:32:56 PM  Show Profile  Reply with Quote
This is controlled via the option:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000