########################################################################### # 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 ############# # 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" endsnippet snippet input "XHTML " endsnippet snippet opt "Option" ${3:$2} endsnippet snippet select "Select Box" endsnippet snippet textarea "XHTML endsnippet snippet mailto "XHTML " ${3:email me} endsnippet snippet base "XHTML " endsnippet snippet body "XHTML " $0 endsnippet snippet div "XHTML
" $0
endsnippet snippet form "XHTML
" $0

endsnippet snippet h1 "XHTML

"

${1}

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 endsnippet snippet style "XHTML endsnippet snippet table "XHTML "
${5:Header}
${0:Data}
endsnippet snippet title "XHTML " <title>${1:`!p snip.rv = snip.basename or "Page Title"`} endsnippet snippet fieldset "Fieldset"
$1 $0
endsnippet snippet movie "Embed QT movie (movie)" b endsnippet # vim:ft=snippets: # Some useful Unicode entities # Non-Breaking Space snippet nbs   # ← endsnippet snippet left ← # → endsnippet snippet right → # ↑ endsnippet snippet up ↑ endsnippet # ↓ snippet down ↓ endsnippet # ↩ snippet return ↩ endsnippet # ⇤ snippet backtab ⇤ endsnippet # ⇥ snippet tab ⇥ endsnippet # ⇧ snippet shift ⇧ endsnippet # ⌃ snippet control ⌃ endsnippet # ⌅ snippet enter ⌅ endsnippet # ⌘ snippet command ⌘ endsnippet # ⌥ snippet option ⌥ endsnippet # ⌦ snippet delete ⌦ endsnippet # ⌫ snippet backspace ⌫ endsnippet # ⎋ snippet escape ⎋ endsnippet # Generic Doctype snippet doctype "HTML 4.01 Strict" endsnippet snippet doctype "HTML 4.01 Transitional" endsnippet snippet doctype "HTML 5" endsnippet snippet doctype "XHTML 1.0 Frameset" endsnippet snippet doctype "XHTML 1.0 Strict" endsnippet snippet doctype "XHTML 1.0 Transitional" endsnippet snippet doctype "XHTML 1.1" endsnippet # HTML Doctype 4.01 Strict snippet docts endsnippet # HTML Doctype 4.01 Transitional snippet doct endsnippet # HTML Doctype 5 snippet doct5 endsnippet # XHTML Doctype 1.0 Frameset snippet docxf # XHTML Doctype 1.0 Strict endsnippet snippet docxs # XHTML Doctype 1.0 Transitional endsnippet snippet docxt # XHTML Doctype 1.1 endsnippet snippet docx endsnippet snippet html ${1} endsnippet snippet xhtml ${1} endsnippet snippet body ${1} endsnippet snippet head ${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`} ${2} endsnippet snippet title ${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`}${2} endsnippet snippet script ${2} endsnippet snippet scriptsrc ${2} endsnippet snippet style ${3} endsnippet snippet base endsnippet snippet r endsnippet snippet div
${2}
# Embed QT Movie endsnippet snippet movie ${6} endsnippet snippet fieldset
${1:name} ${3}
endsnippet snippet form
${3}

endsnippet snippet h1

${2:$1}

endsnippet snippet input ${4} endsnippet snippet label ${7} endsnippet snippet link ${4} endsnippet snippet mailto ${3:email me} endsnippet snippet meta ${3} endsnippet snippet opt ${3} endsnippet snippet optt ${2} endsnippet snippet select ${5} endsnippet snippet table
${2:Header}
${3:Data}
${4} endsnippet snippet textarea ${5} endsnippet snippet quot "add quotation marks" i " endsnippet