骨折喝什么汤恢复得快
Tagged with syntax-highlighting comments
9 questions
0
votes
1
answer
32
views
No inline comments in if statements?
Apparently I get a syntax error in vimscript if I have an inline comment inside of if-statement. For example:
if x
return " we are done
endif
causes an error? wth? The question here is (1) ...
6
votes
2
answers
4k
views
How does VIM know to NOT interpret this .html file as html?
I've been working on an SGML/XML/HTML parser, and part of proof testing it is running through every last .html and .xml file on my system.
One file I came across was this:
vim "/var/lib/snapd/...
3
votes
1
answer
633
views
Comment highlight group does not work without reloading .vimrc
The following line in my ~/.vimrc:
hi Comment ctermfg=gray
does not take effect unless I start Vim and then use :source to reload .vimrc. As far as I can tell, all of the other hi commands work ...
2
votes
0
answers
523
views
Javascript syntax-highlight for JsDoc comments
I now use plugin vim-javascript just to have a nice syntax highlight for JsDoc comments in my Javascript files.
vim-javascript provides nice colors highlight but it conflict with all parentheses ...
1
vote
0
answers
34
views
My C like Comments include markdown, can I have vim highlight those in my JavaScript (Node.js) code? [duplicate]
I write a lot of C/C++ and get highlighting for my Doxygen docs in my comments. It's not perfect, but it sure helps avoiding many very simple mistakes on the spot.
To handle that, I simply have the ...
2
votes
0
answers
59
views
Syntax highlighting depending on whether whole line is commented
Is it possible to have vim highlight folds differently depending on whether every line in a fold is only comments or whitespace? In that case, how?
2
votes
1
answer
618
views
How do I highlight pc-lint comments in C/C++
How do I mimic the behavior of Doxygen comment highlighting for PC-lint comments? Comments are in the following formats:
/*lint ... */
//lint ...
/* LINTLIBRARY */
/* ARGUSED */
/* VARARGS[N] */ <--...
1
vote
1
answer
410
views
Enable templating language (e.g., Liquid) syntax highlighting but keep native (html/css) commenting?
I just started working with Jekyll, which uses Liquid. As a templating language, Liquid is embedded into files of other types (e.g., HTML, CSS, or Markdown). Vim handles this sort of dual syntax ...
3
votes
1
answer
74
views
Match by syntax highlighting instead of expressions
I want to delete all the comments from a program. Vim already knows (in some sense) where all the comments are because it is correctly formatting them based on the syntax file the particular language ...