`date +"%A, %B %d"`
endsnippet
-snippet '([0-9]+)->([0-9]+)' "enumerate list" rw
+snippet '([0-9]+)(,[0-9]+)?..([0-9]+)' "enumerate nums" rw
`!p
+# doesn't quite work with counting down yet
start = int(match.group(1))
-end = int(match.group(2))
-for i in range(start, end+1):
+end = int(match.group(3))
+rng = range(start, end+1) if match.group(2) == None else range(start, end+1, int(match.group(2)[1:])-start)
+for i in rng:
snip.rv += str(i)+"\n"
`
endsnippet
+
+snippet '([a-z])\)..([a-z])\)' "enumerate list" rw
+`!p
+start = ord(match.group(1))
+end = ord(match.group(2))
+for i in range(start, end+1):
+ snip.rv += chr(i)+")\n"
+`
+endsnippet
-snippet `<[a-z]+[0-9]*` "HTML tag expand" r
-<`!p snip.rv = match.group()[1:]`>$0</`!p snip.rv = match.group()[1:]`>
-endsnippet
+# snippet `<[a-z]+[0-9]*` "HTML tag expand" r
+# <`!p snip.rv = match.group()[1:]`>$0</`!p snip.rv = match.group()[1:]`>
+# endsnippet
snippet html "html template" w
<!DOCTYPE html>
</body>
</html>
endsnippet
+
+snippet p "p tag" w
+<p>$0</p>
+endsnippet
+
+snippet div "div tag" w
+<div>$0</div>
+endsnippet
+
+snippet a "a tag" w
+<a>$0</a>
+endsnippet
+
+snippet code "code tag" w
+<code>$0</code>
+endsnippet
+
+snippet img "img tag" w
+<img src="$0" />
+endsnippet
+
+snippet '(h[0-9])' "h tag" rw
+`!p
+snip.rv = "<{0}></{0}>".format(match.group(1))
+`
+endsnippet
+
+snippet bigcode "bigcode block" w
+<pre><code>
+$0
+</code></pre>
+endsnippet
+
+snippet tag "html safe tag" w
+<$1>$0</$1>
+endsnippet
+