I followed the instruction at http://imulus.com/blog/bruce/javascript/how-to-set-up-a-sexy-jquery-textmate... http://imulus.com/blog/bruce/javascript/how-to-set-up-a-sexy-jquery-textmate... and JQuery works perfectly in a .html file. However when the extension is .js the JQuery only works when I go to Bundles…JavaScript JQuery and excplicitly click on what I want to be inserted. So for example, in a .html file I can highlight the “ready” and press control H to see the JQuery documentation, but when I do the same thing in a .js file it says “no documentation found”. Do you have a suggestion for how to get JavaScrip JQuery shortcut keys to work in a .js file?
On 17 Apr 2010, at 18:16, Robert G Jr wrote:
[...] Do you have a suggestion for how to get JavaScrip JQuery shortcut keys to work in a .js file?
Open a .js file then change language grammar via the status bar to jQuery (JavaScript).
After that the jQuery functionality will work (and the choice of treating .js files as jQuery is sticky).