So hi all :)
First i have to say this is a great Control, saved me so much time! But currently i have a small problem with a custom xshd.
I still use the ics.Texteditor, sadly i cant switch to Avalon :/ Hope you can still manage to help me in this one.
Syntax that i have to highlight:
[XYZ]
<string>name:value
<integer>name:value
[/XYZ]
My needs:
[XYZ][/XYZ] <- Any Color (done)
<string> <- Any Color (done)
name <- Any Color (done)
: <- Any Color (buggy is same color as value)
value <- Any Color (buggy is same color as ':' )
I got everything nice and fine so far, my only problem is i cant color the values without coloring ':' to :<
My current xshd:
<?xml version="1.0"?>
<SyntaxDefinition name = "custom" extensions = ".txt">
<RuleSets>
<RuleSet ignorecase="true">
<Delimiters></Delimiters>
<Span name = "comments" bold="false" italic="false" color="#a8a8a8" stopateol="true">
<Begin>//</Begin>
</Span>
<Span name = "top" bold="false" italic="false" color="#54afe8" stopateol="true">
<Begin>[</Begin>
<End>]</End>
</Span>
<Span name = "type" bold="false" italic="false" color="#f24544" stopateol="true">
<Begin><</Begin>
<End>></End>
</Span>
<Span name = "values" rule="insideValues" bold="false" italic="false" color="#3d8236" stopateol="true">
<Begin>:</Begin>
</Span>
</RuleSet>
<RuleSet name="insideValues" ignorecase="true">
<Delimiters></Delimiters>
<KeyWords name = "deli" bold="false" italic="false" color="Black">
<Key word = ":" />
</KeyWords>
</RuleSet>
</RuleSets>
</SyntaxDefinition>
My regards, daboom