Proper tag highlighting in Vim?

我怕爱的太早我们不能终老 提交于 2019-12-24 09:33:20

问题


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.


回答1:


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

to obtain this:



来源:https://stackoverflow.com/questions/5132877/proper-tag-highlighting-in-vim

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