在Vim中正确显示标签? [英] Proper tag highlighting in Vim?

查看:121
本文介绍了在Vim中正确显示标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是进入Vim,但无法弄清楚为什么它不能正确地突出显示这些HTML标记.结束语和html标签不应该是粗体和红色吗?参见图片.

Just getting into Vim, but can't figure out why it's not highlighting these HTML tags properly. Shouldn't the closing body and html tags be bold and red? See pic.

推荐答案

大多数配色方案都不会超出KeywordString之类的通用突出显示组.

Most colorschemes don't go very far beyond the generic highlight groups like Keyword or String.

我最喜欢的颜色方案是巫师,但我必须像这样自定义它:

My favorite colorscheme is Sorcerer but I had to customize it like that :

hi htmlTag            guifg=#90b0d1 gui=NONE 
hi htmlSpecialTagName guifg=#90b0d1 gui=NONE 
hi htmlTagName        guifg=#90b0d1 gui=NONE  
hi htmlEndTag         guifg=#90b0d1 gui=NONE

获取此信息:

这篇关于在Vim中正确显示标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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