I compile my code with include files defining compiler directives, not in project settings, because it's much easier. Delphi does not interpret this at the editor level, so this makes parts of my source code grayed out in Delphi 12 falsely.
How can I disable this colouring feature? (and only this) Or which editor colour should I change? I found no match for it and the example coloured code sample in Options/Editor/Color is missing this kind of code part and I'm afraid it's not in the "Element" list either.
Edit: even if I define that directive in compiler settings, that won't help. Even after a successful compilation. So I want to disable this color feature completely. Delphi 11 does not have this, so going back there.
You can define an opacity percent value for inactive code in Tools > Options > User Interface > Editor > Language dialog on Error Insight tab
.
So in order to prevent inactive code to be faded set Inactive Code Opacity Percent
to 100.
EDIT: In Delphi 12 this setting can be found at Tools > Options > Editor > Language dialog on Error Insight tab
.