rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

support for php+html

Open gcb opened this issue 1 year ago • 3 comments

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 avatar Oct 03 '23 00:10 gcb

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.

gcb avatar Oct 03 '23 01:10 gcb

Yes, there is limit about highlighting html tags.

luochen1990 avatar Oct 07 '23 03:10 luochen1990

thanks @luochen1990

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

gcb avatar Oct 10 '23 12:10 gcb