AvalonEdit: Highlight the text in between Beginning and End elements
-
05-06-2021 - |
Domanda
I'm using AvalonEdit and have a custom highlight rules file, I've got this this rule...
<Span ruleSet="ASP" multiline="true">
<Begin color="ASPSectionStartEndTags"><script</Begin>
<End color="ASPSectionStartEndTags">script></End>
</Span>
...which is highlighting the <script
and script>
elements in my editor but I'd like to highlight the whole script block.
What do I need to add?
Thanks
Soluzione
Put the color
attribute on the <Span>
, not just on the begin/end rules.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow