Tuesday, November 1, 2011

Re: syntax highligting for more than one language simultaneously

On Tue, November 1, 2011 1:34 pm, György Kiss wrote:
> 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'

Only, if the second syntax files is prepared for that kind of thing,
otherwise it won't load (as described in :h 'syntax') and you should
really use the 'syntax' option and not the 'ft' option, but this
depends on your specific needs.

There is however a workaround, that has been documented in the help
(with revision 887d6d91882e) for using embedded awk code within a
shell script. See :h sh-awk (works only with a recent enough version
of your runtime files).

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: