Home Download Buy Blog Forum Support

jQuery/JavaScript autocomplition popup in html embeded code

jQuery/JavaScript autocomplition popup in html embeded code

Postby yuucOm on Sun Sep 30, 2012 1:30 pm

How to enable autocompletion for jQuery to be working in <script> 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 <script> tag ebeded in html code (for example:
Code: Select all
<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 ?
yuucOm
 
Posts: 7
Joined: Sat Sep 29, 2012 12:34 pm

Re: jQuery/JavaScript autocomplition popup in html embeded code

Postby agibsonsw on Sun Sep 30, 2012 6:29 pm

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.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], prmaple and 40 guests