########################################################################### # TextMate Snippets # ########################################################################### global !p def x(snip): if snip.ft.startswith("x"): snip.rv = '/' else: snip.rv = "" endglobal ############ # Doctypes # ############ snippet doctype "DocType XHTML 1.0 Strict" b endsnippet snippet doctype "DocType XHTML 1.0 Transitional" b endsnippet snippet doctype "DocType XHTML 1.1" b endsnippet snippet doctype "HTML - 4.0 Transitional (doctype)" b endsnippet snippet doctype "HTML - 5.0 (doctype)" b endsnippet ############# # Shortcuts # ############# snippet down "Down (down)" ↓ endsnippet snippet enter "Enter (enter)" ⌅ endsnippet snippet escape "Escape (escape)" ⎋ endsnippet snippet shift "Shift (shift)" ⇧ endsnippet snippet tab "Tab (tab)" ⇥ endsnippet snippet up "Up (up)" ↑ endsnippet snippet return "Return (return)" ↩ endsnippet snippet right "Right (right)" → endsnippet snippet left "Left (left)" ← endsnippet snippet option "Option (option)" ⌥ endsnippet ####################### # Conditional inserts # ####################### snippet ! "IE Conditional Comment: Internet Explorer 5_0 only" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer 5_5 only" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer 5_x" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer 6 and below" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer 6 only" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer 7+" $0 endsnippet snippet ! "IE Conditional Comment: Internet Explorer" $0 endsnippet snippet ! "IE Conditional Comment: NOT Internet Explorer" ${1: IE Conditional Comment: NOT Internet Explorer }$0 endsnippet ########### # Forms # ########### snippet form "XHTML
endsnippet snippet input "Input with Label" endsnippet snippet input "XHTML " endsnippet snippet textarea "XHTML