Posted 19 years ago
by GavinK151
Hi again!
I am floundering a bit with adding a new STATE to the provided HTML definition file. For example, the ProcessingInstructionState section defines colour coding for and text within a "<? ?>" block. I want to do somerthing very similar but using (for example) "<: :>".
I added a new Scope section:And defined the styles:
and added the new state as a childstate:
However rebuilding with this new HTML definition seems to have no effect. I am certain I am missing something VERY obvious but I am not sure what I missed! Must I add anything to the HTML Semantic parser? (I thought this was only for outlining)
can anyone give me some pointers?
thanks very much!
I am floundering a bit with adding a new STATE to the provided HTML definition file. For example, the ProcessingInstructionState section defines colour coding for and text within a "<? ?>" block. I want to do somerthing very similar but using (for example) "<: :>".
I added a new Scope section:
<State Key="MYInstructionState" TokenKey="MYInstructionDefaultToken" Style="MYInstructionDefaultStyle">
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="MYInstructionStartToken" Style="MYInstructionDelimiterStyle" PatternValue="<:" />
<ExplicitPatternGroup Type="EndScope" TokenKey="MYInstructionEndToken" Style="MYInstructionDelimiterStyle" PatternValue=":>" />
</Scope>
</Scopes>
<PatternGroups>
<RegexPatternGroup TokenKey="MYInstructionDefaultToken" PatternValue="[^\:]+" />
</PatternGroups>
</State>
<Style Key="MYInstructionDelimiterStyle" Name="MY Instruction Delimiter" BackColor="#FFFF00" ForeColor="#0000FF" Bold="True" />
<Style Key="MYInstructionDefaultStyle" Name="MY Instruction Defaulter" BackColor="#FFFF00" ForeColor="#0000FF" Bold="True" />
<ChildState Key="MYInstructionState" />
can anyone give me some pointers?
thanks very much!