nickspoons / vim-cs

Official Vim Runtime Files for C#
9 stars 3 forks source link

Is there a way do disable the xmldoc highlight? #18

Closed jchain closed 3 years ago

jchain commented 3 years ago

I've found the colorful highlighting in "///" xmldoc is a bit annoying. I just want a plain comment color. Is there a way to disable the xml highlighting in "///" comments? Thanks.

nickspoons commented 3 years ago

The XML comment highlighting includes XML syntax highlighting. You can disable that by just overriding line 96 without the @csXml include.

You can do it in an autocmd but the easiest way is to make a ~/.vim/after/syntax/cs.vim file containing:

syn match csXmlComment "///.*$" contains=csXmlCommentLeader,@Spell keepend
jchain commented 3 years ago

It works. Thanks!