priority -50 ########################################################################### # TextMate Snippets # ########################################################################### global !p def x(snip): if snip.ft.startswith("x"): snip.rv = '/' else: snip.rv = "" endglobal 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 ############# # HTML TAGS # ############# snippet input "Input with Label" w endsnippet snippet input "HTML " w endsnippet snippet option "Option" w ${3:$2} endsnippet snippet select "Select Box" w endsnippet snippet textarea "HTML endsnippet snippet mailto "HTML " w ${3:email me} endsnippet snippet base "HTML " w endsnippet snippet body "" ${0:${VISUAL}} endsnippet snippet div "
" w
${0:${VISUAL}}
endsnippet snippet div. "
with class" w ${0:${VISUAL}}
endsnippet snippet div# "
with ID & class" w ${0:${VISUAL}}
endsnippet snippet form "XHTML
" w ${0:${VISUAL}}
endsnippet snippet h1 "XHTML

" w

${0:${VISUAL}}

endsnippet snippet h2 "XHTML

" w

${0:${VISUAL}}

endsnippet snippet h3 "XHTML

" w

${0:${VISUAL}}

endsnippet snippet h4 "XHTML

" w

${0:${VISUAL}}

endsnippet snippet h5 "XHTML
" w
${0:${VISUAL}}
endsnippet snippet h6 "XHTML
" w
${0:${VISUAL}}
endsnippet snippet head "XHTML " ${1:`!p snip.rv = snip.basename or "Page Title"`} ${0:${VISUAL}} endsnippet snippet link "XHTML " w endsnippet snippet meta "XHTML " w endsnippet snippet scriptsrc "HTML endsnippet snippet script "HTML endsnippet snippet span "" w ${0:${VISUAL}} endsnippet snippet span. " with class" w ${0:${VISUAL}} endsnippet snippet span# " with ID & class" w ${0:${VISUAL}} endsnippet snippet style "XHTML endsnippet snippet table "XHTML " w
${0:${VISUAL}}
endsnippet snippet a "Link" w ${4:Anchor Text} endsnippet snippet p "paragraph" w

${0:${VISUAL}}

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