<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I asked the same question when I migrated. I obviously appreciate
the help we've received to create a temporary fix, but templates
should really be a natural part of the software.<br>
<br>
Walter, I have set it up, so whenever I press [tab] in a blank
document, I get a HTML5 template, and the language is set to PHP.
There is no better way to select language, so it is dependent on
activated bundles. See screenshot for settings. Code below.<br>
<br>
Rasmus<br>
<br>
<font color="#999999"><tt>#!/usr/bin/osascript</tt></font><tt><br>
</tt><tt><font color="#cc9933">tell</font> <font color="#663366">application</font>
<font color="#006600">"System Events"</font></tt><tt><br>
</tt><tt> <font color="#cc9933">keystroke</font> <font
color="#006600">"p"</font> using {control down, option down,
shift down}</tt><tt><br>
</tt><tt> <font color="#cc9933">keystroke</font> <font
color="#006600">"3"</font> <font color="#999999">-- This is
where it's messy. You might need to fix this shortcut</font></tt><tt><br>
</tt><font color="#006600"><tt>"<!DOCTYPE html></tt><tt><br>
</tt><tt><html lang=\"da\"></tt><tt><br>
</tt><tt><head></tt><tt><br>
</tt><tt> <meta charset=\"utf-8\"></tt><tt><br>
</tt><tt> <title>$1</title></tt><tt><br>
</tt><tt> <meta name=\"description\" content=\"\"></tt><tt><br>
</tt><tt> <style type=\"text/css\" media=\"screen\"></tt><tt><br>
</tt><tt> *{margin:0;padding:0;}</tt><tt><br>
</tt><tt> $2</tt><tt><br>
</tt><tt> </style></tt><tt><br>
</tt><tt></head></tt><tt><br>
</tt><tt><body></tt><tt><br>
</tt><tt>$0</tt><tt><br>
</tt><tt></body></tt><tt><br>
</tt><tt></html>"</tt></font><tt><br>
</tt><font color="#cc9933"><tt>end tell</tt></font><br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 27/05/15 14.24, Walter Lee Davis
wrote:<br>
</div>
<blockquote
cite="mid:AE26545E-93B6-48BA-A156-FDE00A0C3525@wdstudio.com"
type="cite">
<pre wrap="">I am sure this may have been discussed earlier, but I would like to know what the current state of Templates (File / New from Template) is in TM2. I started experimenting with 2 over the weekend, after about a decade of using 1.x exclusively. That was my immediate "miss", as I typed out the complete structure of an HTML page (like an animal). Am I just looking in the wrong place for these?
Thanks,
Walter
_______________________________________________
textmate mailing list
<a class="moz-txt-link-abbreviated" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<a class="moz-txt-link-freetext" href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
</pre>
</blockquote>
<br>
</body>
</html>