Loading ...
Sorry, an error occurred while loading the content.

126770Re: syntax highligting for more than one language simultaneously

Expand Messages
  • Christian Brabandt
    Nov 1, 2011
    • 0 Attachment
      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).


      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
    • Show all 5 messages in this topic