When using preprocessor directives for conditional compilation in cpp file all code between directives turns gray.
#include "Config.h"
#if __SOME_CONDITION__
// some code here
#endif
__SOME_CONDITION__ defined in Config.h.
This bug appears only in cpp files. Is there any way to disable graying out excluded code

Preprocessor directives gray out code
Arsoft
If it's grayed out, it means that it won't enter that block - which probably means the macro that you check for is undefined.
TRB
Busy Dragon
adhingra
None that I know of - I was hoping to disable it as well. It is by design (new feature of 2005) according to Microsoft - notice it also disables intellisense in that greyed out code. See: issue number 2 at
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=8c411da6-dea4-4e3c-8e62-5c5d755233c7
If you rename the feacp.dll on your machine does it still happen (note you will lose Intellisense as well)