Tuesday, November 1, 2011

Re: syntax highligting for more than one language simultaneously

If you set the filetype to another type with a dot, vim will syntax highlight both types ex.:
:set ft=php.html

See :h 'ft'

Walkman
Sent from my iPhone

On 2011.11.01., at 9:45, Elias Diem <pub.linux@webconect.ch> wrote:

> On Tue, Nov 01, 2011 at 09:25:48AM +0100, Eric Smith wrote:
>
>> I am sorry if this has been around before, but how may I have
>> highlighting of two languages at the same time.
>
> I think you are looking for this
>
> :help :syn-include
>
> Elias
>
>
> --
> 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 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:

Post a Comment