Highlight Code Block Backgrounds with Vim

血红的双手。 提交于 2019-12-10 18:54:03

问题


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


来源:https://stackoverflow.com/questions/900854/highlight-code-block-backgrounds-with-vim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!