How to hide code based on macro definition?

For example:


#define TEST  1

#if TEST
a = b + 1
#endif

#if !TEST
// set the code with another color or hide it!  
a = b
#endif


I hope that the color of code which would not be compiled can be changed by options.


What is exactly your question ?

For clearly reading, the code included in the disabled macro segment shall be changed to a different color or format.

How to hide code based on macro definition?
 
 
Q