Skip to content

Instantly share code, notes, and snippets.

@jkrehm
Created September 12, 2012 16:40
Show Gist options
  • Save jkrehm/3707975 to your computer and use it in GitHub Desktop.
Save jkrehm/3707975 to your computer and use it in GitHub Desktop.
Sublime Text 2 Snippets
<snippet>
<content><![CDATA[
<% for (int ${1:i}=${2:start}; $1<${3:end}; $1++) { %>
${4:<!--code-->}
<% } %>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>for</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.jsp</scope>
</snippet>
<snippet>
<content><![CDATA[
<% out.println(${1:var}); %>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>out</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.jsp</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment