Wish Different color for #if lines

Alessandro71

Well-Known Member
Licensed User
Longtime User
Currently #if, #else, #end if lines are of the same color as generic code lines.
A different highlight would make conditional code sections easier to read
 

Sandman

Expert
Licensed User
Longtime User
Might be possible to solve by just adding them to themes, so it's possible to style as one wish.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
I see that they are currently colored in other themes, but not in the default MetroLight/Light preset, which I use
So this may actually be a bug of the theme
 

agraham

Expert
Licensed User
Longtime User
In MetroLight/Light theme I see #If and #Endif lines as dark grey, the excluded lines inside light grey and normal code as black. Maybe it's your display settings?

However in the Themes folder you can edit the Light.vssettings files

The #If and #Endif lines format is this entry
<Item Name="Preprocessor Keyword" Foreground="0x00333333" Background="0x02000000" BoldFont="No"/>


The excluded lines format is this entry
<Item Name="Excluded Code" Foreground="0x00555555" Background="0x02000000" BoldFont="No"/>

You can make your own vssettings file if you want to and it will show when you select a theme.
 
Last edited:
Top