How to force vim to syntax-highlight a file as html?

后端 未结 6 1137
你的背包
你的背包 2020-12-12 10:38

How do I set vim\'s syntax highlighting to treat a file extension as an html file?

I\'m using ez template, so the file\'s extension is .ezt. But a lot

6条回答
  •  误落风尘
    2020-12-12 11:10

    In a .php file (or a html file), you could use a Vim Modeline to force certain commands or settings:

     1 /* vim: syntax=javascript
     2  *
     3  * .submit_norefresh()
     ~
     ~
    

提交回复
热议问题