Try:<div><br></div><div>[ attr.file.unknown-type ]</div><div>fileType=text</div><div><br></div><div>[ attr.file.unknown-encoding ]</div><div>encoding=gbk</div><div><br></div><div><br><div class="gmail_quote">2012/3/8 Yuan Jiang <span dir="ltr"><<a href="mailto:sleetdrop@gmail.com">sleetdrop@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span style="font-family:'Lucida Grande'">I saw the following in changelog</span></div>
<div><span style="font-family:'Lucida Grande'"><br></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span style="font-family:'Lucida Grande'">Introduce</span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'"><code>attr.file.unknown-type</code></span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'">and</span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'"><code>attr.file.unknown-encoding</code></span><span style="font-family:'Lucida Grande'">. You can use this in</span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'"><code>.tm_properties</code></span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'">files to set</span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'"><code>fileType</code></span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'">and</span><span style="font-family:'Lucida Grande'"><code>encoding</code></span><span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'">to provide default values only for files where TextMate was unable to find the proper type/encoding (which normally results in a dialog asking the user).</span></div>
</blockquote><div><br></div><div><br></div><div>But When I set it in <span style="font-family:'Lucida Grande'"> </span><span style="font-family:'Lucida Grande'"><code>.tm_properties as below, it doesn't work for me </code></span></div>
<div><span style="font-family:'Lucida Grande'"><code><br></code></span></div><div><span style="font-family:'Lucida Grande'"><code><div>attr.file.unknown-type=text</div><div>attr.file.unknown-encoding=gbk</div>
</code></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><br><div>
<div><div>Yuan Jiang</div><div><a href="http://blog.vetcafe.net" target="_blank">http://blog.vetcafe.net</a></div><div><a href="http://twitter.com/sleetdrop" target="_blank">http://twitter.com/sleetdrop</a></div></div>
</div>
<br></font></span></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div>