문제

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