Sunday, December 7, 2014

Re: How to highlight keyword in comments?

On Sun, Dec 7, 2014 at 6:17 AM, Christian Brabandt<cblists@256bit.org>wrote:

>>I am not exactly sure, why Vim doesn't highlight the second comment. But
>>here is a way to make what you want. Create a file
>>~/.vim/after/syntax/tex.vim
>>and insert there:

>>syn keyword globalTodo contained XXX TODO NB FIXME WARN
>>syn cluster texCommentGroup add=globalTodo
>>hi link globalTodo Todo

>>That should be it. By modifying the texCommentGroup cluster, you can add
>>more syntax items to all comment sections in your file.

>>See also the help add :h mysyntaxfile-add


Cool. Great Thanks!

Regards.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: