multi-web-mode
multi-web-mode copied to clipboard
Switch mode only when caret is between the start and end tag, not on them
multi-web-mode is excellent and I think this is the best mode for webdev on emacs, but just a little thing is bothering me, namely right now if you place your caret inside either the , the major mode switches to js-mode, it would be nice if there was a way to tell multi-web-mode to only change mode when the caret is between the tags, excluding the tags themselves.
I've encountered the same issue. Is there a way to fix it?
This will require some changes in the parsing, I don't think it would be too hard, but not too simple either. I'll promise to take a look when I get the chance.
:+1:
This is even more important when using js2-mode as it will complain on HTML treating it as invalid JavaScript code :)