[TxMt] Re: Different Themes based on file type

Umberto Cerrato umbertocerrato at outlook.it
Fri Aug 23 14:14:56 UTC 2019


Hello,

I found a solution.

[ *{c,cpp} ]
tabSize          = 4
theme            = 71D40D9D-AE48-11D9-920A-000D93589AF6

Hope it will be useful to someone :)

Best

Il giorno 23 ago 2019, alle ore 15:51, Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>> ha scritto:

Hi,

I found the Global.tmProperties file. It does work. This is my “configuration”:

[ source.c ]
theme            = "71D40D9D-AE48-11D9-920A-000D93589AF6"
tabSize
= 4

However, I didn’t manage to have this configuration to work for other formats too. e.g. [ *.c,*.cpp ] does not work neither do [ source.c, source.cpp ] and [ text.c, text.cpp ]. What am I missing?

Best, u

Il giorno 23 ago 2019, alle ore 15:11, Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>> ha scritto:

Thank you Rob, I’ll try asap!

Best

Il giorno 23 ago 2019, alle ore 14:14, Rob McBroom <mailinglist0 at skurfer.com> ha scritto:

On 23 Aug 2019, at 7:45, Umberto Cerrato wrote:

Is there a function to make TextMate 2 opens a certain file type using a specific theme? e.g. there is the default theme and then you can set TM to open html files using another theme.

This is what I have in ~/.tm_properties to make certain types open with a light theme.

[ text.plain,text.html,text.mail ]
theme = "3A9E8876-6DBD-4696-871F-95D340F8BA27"
As you can see, you need to provide the UUID for the theme, not the name.

--
Rob McBroom


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20190823/f9f37165/attachment-0001.html>


More information about the TextMate mailing list