用Vim突出显示代码块背景 [英] Highlight Code Block Backgrounds with Vim

查看:65
本文介绍了用Vim突出显示代码块背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Vim中工作时,我希望php标记内的所有代码的背景色都有轻微变化。因此,例如,对于常规XHTML标记,背景为纯黑色,然后在php标记内显示较浅的颜色,以帮助我快速识别它。这是我可以/应该使用配色方案吗?还是有另一种方法?

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?

推荐答案

您可以使用配色方案方案

You can do it in the color scheme

示例:

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

这篇关于用Vim突出显示代码块背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆