vim-dist / webvim

WebVim is a vim based distribution targeting JavaScript and Web development
http://webvim.org
GNU General Public License v3.0
330 stars 34 forks source link

Javascript part of the html file #52

Open vivekkumar27june88 opened 7 years ago

vivekkumar27june88 commented 7 years ago

Hi

Is it possible to apply javascript rule on the inlined javascript content of a html file?

Thanks

krampstudio commented 7 years ago

Yes, it is but when you do that you actually lose the html syntax color. For example I'm used to change the filetype when I'm editing : set filetype=javascript

May be some Vim guru have a better solution

krampstudio commented 5 years ago

Looking back at this issue, here are my findings :

I can imagine having such rules in an html files within <script> or <style> tags, but also within documentation files, like markdown...