Sublime Forum

jQuery/JavaScript autocomplition popup in html embeded code

#1

How to enable autocompletion for jQuery to be working in tags embedded in html file ? I got working jquery code hits and autocompletion popups but only in javascript files (.js). There is no popup with code completion in tag ebeded in html code (for example:

<script>
	  (function() {
	  	alert("test") 
	  })();
    
   $.on
  </script>

After typing $.on i do not have code compliton. Can I enable this woring not only in .js files but also in script tag embeded in html code ?

0 Likes

#2

Within a completions file or the snippet files you could try changing the scope from "source.js " to "source.js, source.js.embedded.html " but I’m not sure if it requires the comma or not.

0 Likes