[TxMt] Re: Basic Questions

Allan Odgaard mailinglist at textmate.org
Sat Sep 20 08:15:54 UTC 2008


On 12 Sep 2008, at 14:50, kyle murphy wrote:

> 1.  Let's say I wanted to create a Language Grammar (.bah) that  
> inserts 'bah' when I type b + tab. However, this snippet should only  
> work in .bah files.
>
> So my new language looks like this:
>
> {	scopeName = 'text.bah';
> 	fileTypes = ( bah );
>        ...
>
> When I create a new snippet, and give it a scope of 'text', it works  
> in .bah files; however, when I give it a scope of text.bah, it  
> doesn't.

Try press ⌃⇧P to see what the scope is in your bah file.





More information about the textmate mailing list