madskristensen / RainbowBraces

A Visual Studio extension
Apache License 2.0
128 stars 7 forks source link

No colouring in html and htm files when HTML LSP-based editor is enabled #102

Closed graymatter00 closed 11 months ago

graymatter00 commented 11 months ago

Braces, brackets, etc. are not coloured in html and htm files when the HTML LSP-based editor option is enabled. See screenshots below.

The HTML LSP-based editor option...

image

html file with the option enabled...

image

htm file with the option enabled...

image

html file with the option disabled...

image

htm file with the option disabled...

image

lordfanger commented 11 months ago

Thank you very much, the fix PR is on the fly.

graymatter00 commented 11 months ago

@lordfanger With the latest update, Rainbow Braces 1.0.153, the colouring of html and htm files with the HTML LSP-based editor option enabled, is better but not fully correct. See screenshots below.

image

image

lordfanger commented 11 months ago

I'll think about it. The problem is that in HTML colorization is OFF by default so it won't colorize for example ) in <span> :) </span>. But in CSS and JavaScript it is ON by default. I'll have to rework code to be aware of context where the parser is. If inside