[EMAIL PROTECTED] wrote:
Hi all,
How can I change the color for the comments on a particular language
syntax highlight?
Regards,
xfedex.
I recommend to do it by writing your own colourscheme based (if you
don't have a colourscheme yet) on the "default" colorscheme
($VIMRUNTIME/colors/default.vim) and including a "highlight" line for
the group in question (Comment for all languages, or else cComment,
htmlComment, or similar). ":highlight" with no arguments will show you
all the highlightgroups currently defined.
Give your "new" colorscheme a filename ending in .vim (let's say
my_own_colors.vim) and place it in one of the following directories
(directory names in "Vim" notation):
for user-private use on Windows
~/vimfiles/colors
for user-private use on Unix:
~/.vim/colors
for system-wide use on any platform
$VIM/vimfiles/colors
and invoke it by means of a ":colorscheme" statement in your vimrc, in
the given example:
colorscheme my_own_colors
See
:help :colorscheme
:help :highlight
:view $VIMRUNTIME/colors/default.vim
It is possible to do it "more simply", e.g. by adding "highlight" lines
to your vimrc, but IMHO the above is "safer", especially if you decide
to use a different colorscheme someday.
Best regards,
Tony.