########################################################################### # 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
" $0

endsnippet snippet input "Input with Label" endsnippet snippet input "XHTML " endsnippet snippet textarea "XHTML endsnippet snippet select "Select Box" endsnippet snippet opt "Option" ${3:$2} endsnippet snippet mailto "XHTML " ${3:email me} endsnippet snippet base "XHTML " endsnippet snippet body "XHTML " $0 endsnippet snippet div "XHTML
" ${3}
${4} endsnippet snippet h1 "XHTML

"

${1}

${2} endsnippet snippet h2 "XHTML

"

${1}

${2} endsnippet snippet h3 "XHTML

"

${1}

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

${1}

${2} endsnippet ########## # List # ########## snippet ul "unordered list" ${2} ${3} endsnippet snippet ol "unordered list" ${2} $0 endsnippet snippet li "list item"
  • ${1}
  • li${2} endsnippet snippet dl "dl" !b
    ${1}
    dl${2} endsnippet snippet . "class" class="${1}"${2} endsnippet snippet # "id" id="${1}"${2} endsnippet ########### # Table # ########### snippet table "XHTML " ${2}
    ${3} endsnippet snippet thead "XHTML " ${1} ${2} endsnippet snippet tbody "XHTML " ${1} ${2} endsnippet snippet tfoot "XHTML " ${1} ${2} endsnippet snippet tr "table row" ${1} tr${2} endsnippet snippet td "table cell" ${1} td${2} endsnippet snippet th "table cell" ${1} th${2} endsnippet snippet title "XHTML " <title>${1:`!p snip.rv = snip.basename or "Page Title"`} endsnippet snippet fieldset "Fieldset"
    $1 $0
    endsnippet snippet pre "XHTML pre" !b
    ${1}
    ${2} endsnippet snippet movie "Embed QT movie (movie)" b endsnippet # vim:ft=snippets: