126770Re: syntax highligting for more than one language simultaneously
- Nov 1, 2011On Tue, November 1, 2011 1:34 pm, György Kiss wrote:
> If you set the filetype to another type with a dot, vim will syntaxOnly, if the second syntax files is prepared for that kind of thing,
> highlight both types ex.:
> :set ft=php.html
> See :h 'ft'
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).
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
- << Previous post in topic Next post in topic >>