[TxMt] Re: Bundle Scope - file types

Carpii UK carpii.uk at gmail.com
Sun Dec 6 14:11:55 UTC 2015


Awesome, this works great

Thankyou!


On 6 December 2015 at 14:07, Martin Kühl <martin.kuehl at gmail.com> wrote:

> On 6 December 2015 at 14:23, Carpii UK <carpii.uk at gmail.com> wrote:
> > When editing a bundle, you can set the file types which this bundle
> should
> > apply to by default
> >
> > Is there any way I am able to include file masks in this, or does it just
> > work on file extension?
> >
> > For example, I have *.js files which obviously default to Javascript
> > My Smarty bundle is set to handle all *.tpl files
> >
> > But now I want to override this by treating "js_*.tpl" files as
> Javascript
> > also
> >
>
> A declaration like
>
>     [ js_*.tpl ]
>     fileType = source.js
>
> in your tm_properties should do the trick.
>
> Hope that helps,
> Martin
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151206/2def8cfb/attachment.html>


More information about the textmate mailing list