If you use conditional compilation with #ifdef .. #endif regions, the inactive regions will be visible with different color in the editor.
Below is a piece of code from the CDX RDD. The CHECKVERSIONS define is not defined, so there is an inactive region in the editor, which is shown in light gray.