<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 23 Aug 2019, at 7:45, Umberto Cerrato wrote:</p>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">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.</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">This is what I have in <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">~/.tm_properties</code> to make certain types open with a light theme.</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px; color:black" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"><span style="color: #008800; font-weight: bold">[ text.plain,text.html,text.mail ]</span>
<span style="color: #0000CC">theme</span> <span style="color: #333333">=</span> <span style="background-color: #fff0f0">"3A9E8876-6DBD-4696-871F-95D340F8BA27"</span>
</code></pre>



<p dir="auto">As you can see, you need to provide the UUID for the theme, not the name.</p>

<p dir="auto">-- <br>
Rob McBroom</p>
</div>
</div>
</body>
</html>