From ed5c19f3f677c87e15864d876f8546b242713f24 Mon Sep 17 00:00:00 2001 From: Stephen Tudor Date: Tue, 2 Aug 2011 10:30:45 -0400 Subject: [PATCH] Revamped HTML snippets. --- snippets/html.snippets | 821 ++++++++++++++++++++++++++++++++++------- 1 file changed, 692 insertions(+), 129 deletions(-) diff --git a/snippets/html.snippets b/snippets/html.snippets index bc82eb9..3403f67 100644 --- a/snippets/html.snippets +++ b/snippets/html.snippets @@ -27,13 +27,13 @@ snippet tab snippet shift ⇧ # ⌃ -snippet control +snippet ctrl ⌃ # ⌅ snippet enter ⌅ # ⌘ -snippet command +snippet cmd ⌘ # ⌥ snippet option @@ -45,7 +45,7 @@ snippet delete snippet backspace ⌫ # ⎋ -snippet escape +snippet esc ⎋ # Generic Doctype snippet doctype HTML 4.01 Strict @@ -95,6 +95,347 @@ snippet docxt snippet docx +# Attributes +snippet attr + ${1:attribute}="${2:property}" +snippet attr+ + ${1:attribute}="${2:property}" attr+${3} +snippet . + class="${1}"${2} +snippet # + id="${1}"${2} +snippet alt + alt="${1}"${2} +snippet charset + charset="${1:utf-8}"${2} +snippet data + data-${1}="${2:$1}"${3} +snippet for + for="${1}"${2} +snippet height + height="${1}"${2} +snippet href + href="${1:#}"${2} +snippet lang + lang="${1:en}"${2} +snippet media + media="${1}"${2} +snippet name + name="${1}"${2} +snippet rel + rel="${1}"${2} +snippet scope + scope="${1:row}"${2} +snippet src + src="${1}"${2} +snippet title + title="${1}"${2} +snippet type + type="${1}"${2} +snippet value + value="${1}"${2} +snippet width + width="${1}"${2} +# Elements +snippet a + ${2:$1}${3} +snippet a. + ${3:$1}${4} +snippet a# + ${3:$1}${4} +snippet a:ext + ${2:$1}${3} +snippet a:mail + ${3:email me}${4} +snippet abbr + ${2}${3} +snippet address +
+ ${1} +
${2} +snippet area + ${4}${5} +snippet area+ + ${4} + area+${5} +snippet area:c + ${3}${4} +snippet area:d + ${3}${4} +snippet area:p + ${3}${4} +snippet area:r + ${3}${4} +snippet article +
+ ${1} +
${2} +snippet article. +
+ ${2} +
${3} +snippet article# +
+ ${2} +
${3} +snippet aside + ${2} +snippet aside. + ${3} +snippet aside# + ${3} +snippet audio +