<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">I found the <i class="">Global.tmProperties</i><span style="font-style: normal;" class=""> file. It does work. This is my “configuration”:</span></div>
<div class=""><span style="font-style: normal;" class=""><br class="">
</span></div>
<div class="">
<div class=""><font color="#a652a1" face="Monaco" size="2" class=""><span style="font-style: normal;" class="">[ source.c ]</span></font></div>
<div class=""><font color="#a652a1" face="Monaco" size="2" class=""><span style="font-style: normal;" class="">theme = "71D40D9D-AE48-11D9-920A-000D93589AF6"</span></font></div>
<div class=""><font color="#a652a1" face="Monaco" size="2" class=""><span style="font-style: normal;" class="">tabSize<span class="Apple-tab-span" style="white-space:pre">
</span>= 4</span></font></div>
<div class=""><br class="">
</div>
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?</div>
<div class=""><br class="">
</div>
<div class="">Best, u</div>
<div class=""><br class="">
<blockquote type="cite" class="">Il giorno 23 ago 2019, alle ore 15:11, Umberto Cerrato <<a href="mailto:umbertocerrato@outlook.it" class="">umbertocerrato@outlook.it</a>> ha scritto:<br class="">
<br class="">
Thank you Rob, I’ll try asap!<br class="">
<br class="">
Best<br class="">
<br class="">
<blockquote type="cite" class="">Il giorno 23 ago 2019, alle ore 14:14, Rob McBroom <<a href="mailto:mailinglist0@skurfer.com" class="">mailinglist0@skurfer.com</a>> ha scritto:<br class="">
<br class="">
On 23 Aug 2019, at 7:45, Umberto Cerrato wrote:<br class="">
<br class="">
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.<br class="">
<br class="">
This is what I have in ~/.tm_properties to make certain types open with a light theme.<br class="">
<br class="">
[ text.plain,text.html,text.mail ]<br class="">
theme = "3A9E8876-6DBD-4696-871F-95D340F8BA27"<br class="">
As you can see, you need to provide the UUID for the theme, not the name.<br class="">
<br class="">
-- <br class="">
Rob McBroom<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
TextMate mailing list<br class="">
<a href="mailto:TextMate@lists.macromates.com" class="">TextMate@lists.macromates.com</a><br class="">
https://lists.macromates.com/listinfo/textmate<br class="">
</blockquote>
<br class="">
<br class="">
_______________________________________________<br class="">
TextMate mailing list<br class="">
<a href="mailto:TextMate@lists.macromates.com" class="">TextMate@lists.macromates.com</a><br class="">
https://lists.macromates.com/listinfo/textmate<br class="">
</blockquote>
<br class="">
</div>
</body>
</html>