rainbow
rainbow copied to clipboard
support for php+html
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:
After :RainbowToggle
:
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...?
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.
Yes, there is limit about highlighting html tags.
thanks @luochen1990
Is there an option to keep levels in php but disable on html code? or should i try to add one?