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">&lt;script</Begin>
    <End color="ASPSectionStartEndTags">script&gt;</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

有帮助吗?

解决方案

Put the color attribute on the <Span>, not just on the begin/end rules.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top