Wednesday, September 19, 2012

Re: dynamic syntax highlighting

On Wednesday, September 19, 2012 7:32:27 AM UTC-5, Miek Gieben wrote:
> Hello,
>
>
>
> While typing some Go code, I had the following idea: dynamic syntax
>
> highlighting.
>
>
>
> I was typing:
>
>
>
> type Boo struct {
>
> // ...
>
> }
>
>
>
> Now, Vim could "know" Boo is a type and apply the syntax highlighting for Type
>
> accordingly.
>
>
>
> Is something like this even remotely possible with Vim? Can it be done with a
>
> vimscript?
>
>
>

I don't remember the plugin name, but I remember seeing a couple plugins which use ctags (like tagbar and taglist do) to build a list of tags to highlight in Vim syntax. Try looking for "ctags syntax vim" or similar:

https://www.google.com/search?q=ctags+syntax+vim

--
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

No comments: