Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top