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
 Feature Requests
 Editing #ifdef blocks causes delayed re-coloring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Feb 15 2008 :  11:14:18 AM  Show Profile  Reply with Quote
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 :)

rhummer
Tomato Guru

USA
527 Posts

Posted - Feb 15 2008 :  11:26:30 AM  Show Profile  Reply with Quote
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.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Feb 15 2008 :  8:58:39 PM  Show Profile  Reply with Quote
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.

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