Of course you can mass edit a bundle's scope, just open the bundle in the bundle editor and do a global search and replace. BUT, this is not your problem. Your problem is that other bundles include the javascript bundle, and you want them instead to include your bundle, so normally you would have to change that bundle.
I suppose what you can do is rename the javascript bundle into source.js.old, make jQuery into source.js, and have it include source.js.old. Would that work I wonder?
Or you could just modify the javascript bundle to include jQuery, if that's really what you always use (far from ideal, I know).
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Thomas Aylott - subtleGradient wrote:
On Jan 8, 2008, at 2:19 PM, Nate Cavanaugh wrote:
Ah, very true, so I guess I misspoke a bit on exactly what I needed. That works great for pure JS files.
I suppose what I need is for the language scope to be the same for embedded JS as well, not just solely JS files.
However, changing the language of doesn't seem to apply on a language by language basis, hence my desire to edit the bundle.
But that's why I'm asking you guys :)
Is there a way to accomplish this for embedded JS as well as JS files?
The current version of TextMate 1.5.x simply cannot technically handle too many levels of embedded languages.
jQuery doesn't know how it is embedded into something else. Every language that embeds Javascript would need to be changed to embed jQuery instead of javascript.
Many library syntaxes like jQuery aren't written to easily allow themselves to be embedded inside another language. I'm currently working on revamping how all the Javascript syntaxes embed eachother and inherit and whatnot.
Try making a copy of the main syntax that is embedding javascript (EG: HTML) and then change it to embed jQuery instead. It probably will make a terrible mess and won't work at first, but you might just get it working eventually. I have quite a number of modified HTML syntaxes for embedding different things in different ways.
—Thomas Aylott – subtleGradient—