Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Colouring wrong with #ifdef

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
ChrisWest Posted - Sep 12 2008 : 7:10:49 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 15 2008 : 2:32:56 PM
This is controlled via the option:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color
accord Posted - Sep 13 2008 : 07:05:13 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000