priority -50 ########################################################################### # 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 ############# # HTML TAGS # ############# snippet input "Input with Label" w endsnippet snippet input "XHTML " w endsnippet snippet opt "Option" w ${3:$2} endsnippet snippet select "Select Box" w endsnippet snippet textarea "XHTML endsnippet snippet mailto "XHTML " w ${3:email me} endsnippet snippet base "XHTML " w endsnippet snippet body "XHTML " $0 endsnippet snippet div. "
with class" w $0
endsnippet snippet div# "
with ID & class" w $0
endsnippet snippet form "XHTML
" w $0

endsnippet snippet h1 "XHTML

" w

${1}

endsnippet snippet head "XHTML " ${1:`!p snip.rv = snip.basename or "Page Title"`} $0 endsnippet snippet link "XHTML " w endsnippet snippet meta "XHTML " w endsnippet snippet scriptsrc "XHTML endsnippet snippet script "XHTML endsnippet snippet style "XHTML endsnippet snippet table "XHTML " w
${5:Header}
${0:Data}
endsnippet snippet a "Link" w ${4:Anchor Text} endsnippet snippet p "paragraph" w

$0

endsnippet snippet li "list item" w
  • $0
  • endsnippet snippet ul "unordered list" w endsnippet snippet td "table cell" w $0 endsnippet snippet th "table header" w $0 endsnippet snippet tr "table row" w $0 endsnippet snippet title "XHTML " w <title>${1:`!p snip.rv = snip.basename or "Page Title"`} endsnippet snippet fieldset "Fieldset" w
    $1 $0
    endsnippet snippet movie "Embed QT movie (movie)" b endsnippet # vim:ft=snippets: