When I use both these attributes, it looks like fgcolor
is ignored if it comes before style
.
I’m using the theme Starry Sky (dark), just in case the theme affects the ordering of fgcolor
and style
.
When I use both these attributes, it looks like fgcolor
is ignored if it comes before style
.
I’m using the theme Starry Sky (dark), just in case the theme affects the ordering of fgcolor
and style
.
The style
attribute includes both a foreground and background color. If you use it with fgcolor
it will currently override the color given with fgcolor
.
Graeme
SweetScape Software
Styles can affect both foreground and background colors but by default just change the background colors. To see the current colors open the Theme/Color Options dialog and scroll down to Template Styles . Styles can also be set for variables using the SetStyle/
I took this to mean that the styles supplied with 010 Editor don’t, by default, change the foreground colors?
This is a little tricky. Styles do have a foreground and background color but by default the foreground color is set to ‘None’, meaning use the default editor color. When you use
int test <style=sHeading1>;
that forces the foreground color to ‘None’. If you want to change the foreground color, the solution is to set the fgcolor after setting a style like this:
int test <style=sHeading1, fgcolor=cBlue>;
Graeme
SweetScape Software
Got it. Thanks for the clarification (which should perhaps go into the 010 Editor Help).