Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Editing #ifdef blocks causes delayed re-coloring

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
znakeeye Posted - Feb 15 2008 : 11:14:18 AM
This happens quite frequently (not sure exactly what triggers it though)! Consider this:
#ifdef SOME_DEFINE
   DoStuff();
#endif

foo(x);
bar(y);
baz(z);
If I edit some stuff inside the ifdef-clause, all code below the #endif-statement is grayed out! Re-parsing or re-opening the document does not help. It seems you simply have to wait a minute or so, to get your syntax colors back. Frustration? LOL :)
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 15 2008 : 8:58:39 PM
This is the IDE, see the option:

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

Personally I turned this off quite quickly, since it is always really slow to update, and not terribly accurate / useful, at least not in my experience.
rhummer Posted - Feb 15 2008 : 11:26:30 AM
IIRC the grayed out coloring is done by Visual Studio, which is pretty flaky in VS2005, not sure if they have improved this with 2008.

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