<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=036382718-15102009><FONT face=Arial
color=#0000ff size=2>Not sure if this is what you're looking for, and I'm not a
Rubyist so I'm not too familiar with those bundles, but you can basically scope
anything to your hearts desire.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=036382718-15102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=036382718-15102009><FONT face=Arial
color=#0000ff size=2>If a command makes sense to actually be active for more
than one file type, you just need to extend the scope of the command. Just
separate them with commas in the "Scope Selector" field of the Command.
Or, if it makes sense to do so, you can choose a more generic scope that
umbrellas the desired specific scopes.</FONT></SPAN></DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff size=2>Also,
a lanugage can extend another language by setting the scopeName of the lanuage
to something extends the other lanuage. For example, a lot of XML bundles
that focus on a particular type of XML, and not just XML in general, set the
language scope to text.xml.specifictype.</FONT></SPAN></DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff size=2>I
would imagine you'd have to go through all commands and snippets and manually
change the scope selectors, which would be tedious to say the least. If
you're feeling adventurous, you can open up the bundle package, bring the files
therein into TextMate, and do a big search and replace on </FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff
size=2> <key>scope</key><BR> <string><SPAN
class=036382718-15102009>originalscope</SPAN></string></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2>to</FONT></SPAN></DIV>
<DIV><FONT face=Arial><BR><FONT color=#0000ff size=2></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff
size=2> <key>scope</key><BR> <string><SPAN
class=036382718-15102009>new </SPAN><SPAN
class=036382718-15102009>scope</SPAN></string><BR></FONT></DIV>
<DIV></FONT><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff size=2>I'd
make a backup of the bundle first, though!</FONT></SPAN></DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff size=2>Hope
that helps.</FONT></SPAN></DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=036382718-15102009><FONT face=Arial color=#0000ff
size=2>Dru</FONT></SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
textmate-bounces+dru=summitprojects.com@lists.macromates.com
[mailto:textmate-bounces+dru=summitprojects.com@lists.macromates.com] <B>On
Behalf Of </B>Josh Cheek<BR><B>Sent:</B> Thursday, October 15, 2009 11:19
AM<BR><B>To:</B> textmate@lists.macromates.com<BR><B>Subject:</B> [TxMt]
Combining bundles<BR></FONT><BR></DIV>
<DIV></DIV>Hi, the Ruby programming language has a library called ERB which
allows you to embed Ruby into strings. Frequently these strings are source code
for other languages, Ruby on Rails, for example, heavily uses ERB to embed Ruby
code into an html file. Because it is so frequently used, it has it's own bundle
called HTML(Rails)<BR><BR>I am wanting to use ERB with other projects, and am
finding that I can only use one bundle at a time. So I am frequently switching
back and forth with shift+control+option+letter which is working fairly well,
and not that much extra work, but it does mean that my project always has
incorrect highlighting on some portion of it.<BR><BR>Is there a way to create a
bundle that understands it's purpose is to work with other bundles? Perhaps at
some point, based on it's scope, it could realize that it needs to yield to the
second language or something.<BR><BR>Thanks<BR>-Josh<BR></BODY></HTML>