Highlight Code Block Backgrounds with Vim

2019-07-04 01:08发布

问题:

While I am working in Vim I'd like to have a slight background color change for all code inside the php tags. So for example, the background is solid black for regular XHTML markup, then displays slighly lighter inside the php tags to help me identify it quickly. Is this something I can/should do with the color scheme or is there another method?

回答1:

You can do it in the color scheme

example:

hi htmlTag          guifg=#00bdec   guibg=#200000            gui=bold