Syntax Editor/Color Coding..
Posted: 18 May 2022 20:35
Ok, I am trying to setup a new codex/snytax component for some internal code used. I am not wanting to use all the default colors and want to force in some unique color combinations. I am having difficulties trying to figure out how to do this or if it can be done within the .syx file.
Currently I am looking at a couple things one - under comments ie [Options] I would like to assign specific colors to lines using some kind of predefined color option. I would also like to do the same within [Keywords]
Currently - I am only able to figure out how to define this by how far down the options are using the standard color pallet that is assigned. Is this something that can be added in? or is this something I am missing with a control option?
Colors correspond directly to the keyword line number:
Example:
[Keywords]
control=select|input|delete
operands=and|or
output=into
*keyword1 = blue (#4039C1), keyword2 = brown? (#91420A), keyword3 = orange (#FF6600)
The only way I could have "control" show up in Orange and "output" show up in blue would be to change the order that I have them set based on keyword order. As I cannot see how to define a color other than manually setting a color vs defining in the syx file I would import.
[Keywords]
output=into
operands=and|or
control=select|input|delete
That led me to the next question of how would I choose it for the [Options] items like comments numbers etc. Then on top of that - is there a method to set a color difference for bold italic and/or underline via the syx file?
Currently I am looking at a couple things one - under comments ie [Options] I would like to assign specific colors to lines using some kind of predefined color option. I would also like to do the same within [Keywords]
Currently - I am only able to figure out how to define this by how far down the options are using the standard color pallet that is assigned. Is this something that can be added in? or is this something I am missing with a control option?
Colors correspond directly to the keyword line number:
Example:
[Keywords]
control=select|input|delete
operands=and|or
output=into
*keyword1 = blue (#4039C1), keyword2 = brown? (#91420A), keyword3 = orange (#FF6600)
The only way I could have "control" show up in Orange and "output" show up in blue would be to change the order that I have them set based on keyword order. As I cannot see how to define a color other than manually setting a color vs defining in the syx file I would import.
[Keywords]
output=into
operands=and|or
control=select|input|delete
That led me to the next question of how would I choose it for the [Options] items like comments numbers etc. Then on top of that - is there a method to set a color difference for bold italic and/or underline via the syx file?