HTML syntax highlighting in javascript strings in vim

I don't know if this is possible/sensible, but I was curious to know if I can have my strings in javascript files have html highlighting. I discovered that strings in php could have SQL syntax highlighting, so I believe it is possible. But, I don't know vim-scripting, so any help on this appreciated. I am using the [Better Javascript syntax][1]. PS: If there could be an option to turn it on and off while editing a js file, that would be wonderful Thanks [1]: http://www.vim.org/scripts/script.php?script_id=1491 "Better Javascript syntax"
+1, I'd like to be able to do this too... I have a ton of HTML embedded in JS files. Python embedded in my vimrc is highlighted correctly, so this sort of thing is definitely possible.

以上就是HTML syntax highlighting in javascript strings in vim的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏