Monday, January 23, 2012

Re: mixed syntax highlighting

Hi Ben!

On Mo, 23 Jan 2012, Ben Fritz wrote:

>
>
> On Jan 21, 3:24 pm, Simon Nicolussi <si...@sinic.name> wrote:
> > Chris Lott wrote:
> > > Is it possible to have a mixed syntax highlighting?
> >
> > Yes. Just set both of them as your filetype, separated by a dot:
> >
> >   set filetype=c.doxygen
> >
>
> This will only work for syntax files specifically designed for it. In
> general, there is no way to combine arbitrary syntax files without
> hacking together your own syntax definitions.
>
> See
>
> http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file

See als :h sh-embed for recent runtime files, on how to do this for the
example of embedding awk into sh syntax.

regards,
Christian

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