Color sheme files define colors which are used inside the text editor and syntax mode definitions. Every color used by the editor is defined inside a sheme.
Sheme files are defined in xml with following syntax:
<EditorStyle name="[NAME]" _description="[DESCRIPTION]">
<Color name="[COLOR]" value="#RRGGBB"/>
...
<Style name="[STYLE]" color="[COLOR]"/>
...
</EditorStyle>
First a custom palette can be defined (but it's not required since the color attributes of the styles can use a color value directly). Color values have the form #RRGGBB or #AARRGGBB. Beside that html palette colors ("red", "green", "blue", ...) is supported as well.
Style tags can either be nested (then the name of the nested style is PARENT.CHILD) or be just a 'list'. Example - these definitions are the same:
<Style name="string" color="red"/> <Style name="string.single" color="red"/> <Style name="string.double" color="red"/> <Style name="string.other" color="red"/>
And:
<Style name="string" color="red">
<Style name="single" color="red"/>
<Style name="double" color="red"/>
<Style name="other" color="red"/>
</Style>
The syntax highlighting engine takes the parent color, if a child color is requested that isn't available. Therefore you could just do this:
<Style name="string" color="red">
This is exactly the same as the definitions above.
For a recent list of all color names refer the OblivionStyle.xml from the Mono.TextEditor project.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
(It's funny that this typo is here, given how weird the captcha was to sign up here: how it focused on specific characters haha)