You reach this option by using the "Utils", then "Show ifdefs" from the main menu
This option starts the compiler with the -M1 option and obtains a list of the active lines. Using this information, wedit will gray all the inactive lines.
Note that this option is not updated in real time when you edit your source.