[TxMt] Re: Bundle Scope - file types

Martin Kühl martin.kuehl at gmail.com
Sun Dec 6 14:07:10 UTC 2015

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,

More information about the textmate mailing list