multi-web-mode icon indicating copy to clipboard operation
multi-web-mode copied to clipboard

Switch mode only when caret is between the start and end tag, not on them

Open wyuenho opened this issue 12 years ago • 3 comments

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.

wyuenho avatar Dec 01 '12 17:12 wyuenho

I've encountered the same issue. Is there a way to fix it?

ghost avatar Jun 03 '13 21:06 ghost

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.

fgallina avatar Jun 16 '13 00:06 fgallina

:+1:

This is even more important when using js2-mode as it will complain on HTML treating it as invalid JavaScript code :)

foobarto avatar Jun 24 '13 13:06 foobarto