title: Modifying HTML <script> auto complete on Sublime Text 2
body: <p>In Sublime Text 2 when inserting an html script tag using auto complete the cursor jumps to the end of the tag.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;&lt;/script&gt;*CURSOR HERE*
  </code></pre>
  
  <p>How can i modify the auto completion in Sublime so when I tab-complete an html script tag a src-attribute is added to the tag and the cursor jumps to the quotes of the src-attribute?</p>
  
  <p>I found the following line in the Sublime HTML.sublime-completions file:</p>
  
  <pre><code>{ "trigger": "script", "contents": "&lt;script type=\"${1:text/javascript}\"&gt;$0&lt;/script&gt;" }
  </code></pre>
  
  <p>I tried modifying it to the following:</p>
  
  <pre><code>{ "trigger": "script", "contents": "&lt;script type=\"${1:text/javascript}\" src=\"$1\"&gt;$0&lt;/script&gt;" }
  </code></pre>
  
  <p>For this I referenced the html link tag in the file:</p>
  
  <pre><code>{ "trigger": "link", "contents": "&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"$1\"&gt;" }
  </code></pre>
  
  <p>I tried installing another package called HTMLAttributes, but this didn't add the functionality i want.</p>
  
  <p>I also tried modifying the script tag, i removed the type, but Sublime can still auto complete it. Am I modifying it wrong? Or in the wrong file?</p>
  
  <p>Thanks for any help.</p>