luochen1990 / rainbow

Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
Apache License 2.0
1.78k stars 95 forks source link

support for php+html #190

Open gcb opened 1 year ago

gcb commented 1 year ago

Most php syntax files work with phpRegion and use php or html syntax as appropriate. With Rainbow Eanbled, it all become php.

for example, without Rainbow: image

After :RainbowToggle: image

I'm not well-versed in vim's syntax code... but i can see that it already includes containedin=@htmlPreproc which should have limited these synIDs into the php region...?

gcb commented 1 year ago

oh. i just realized it is coloring the html tags in the same colors as the parentheses...

but in the process it is also killing all other information, such as showing attributes etc. Not to mention the contents of tags such as script/style which show up fine with rainbow off.

luochen1990 commented 1 year ago

Yes, there is limit about highlighting html tags.

gcb commented 1 year ago

thanks @luochen1990

Is there an option to keep levels in php but disable on html code? or should i try to add one?