+8

Toggle comment not working on html script tag

Les Stroud 12 years ago updated by Alex Ilyaev 12 years ago 4
If there is javascript embedded in a script tag in html, then the following happens:
  • If I highlight any part or all of the javascript and toggle comment, it functions as expected
  • If I highlight any part of the html (not including javascript) and toggle comment, it functions as expected
  • If I highlight a mix of html and javascript and toggle the comment, it works as expected in all except the following case...
  • If I highlight just the script tag (opening and closing) including the contained javascript, the toggle comment command uses // for all the javascript and for the html tags (script).  It should use html comment syntax for the script tags and js syntax for the javascript part.
Survivor Man: Sublime Text 2
I have the same issue.
v2.0 build 2210
How can we fix this?

The same. Pretty annoying.

+1

Same issue, please fix.