[TxMt] Re: Different Themes based on file type
Umberto Cerrato
umbertocerrato at outlook.it
Mon Aug 26 09:56:47 UTC 2019
Hi,
Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.
About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.
Thanks
U
> Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org> ha scritto:
>
> On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:
>
> I found a solution.
>
> [ *{c,cpp} ]
> tabSize = 4
> theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
>
> The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).
>
> So instead you should want to use:
>
> [ *.{c,cpp} ]
> tabSize = 4
> theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
>
> As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:
>
> [ 'source.c, source.c++' ]
> tabSize = 4
> theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
>
> The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.
>
>
> _______________________________________________
> TextMate mailing list
> TextMate at lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
More information about the TextMate
mailing list