diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_0 only.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_0 only.yasnippet index 8064cb3..8bd737b 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_0 only.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_0 only.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 5.0 only +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_5 only.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_5 only.yasnippet index 8603cae..a5afa6e 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_5 only.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_5 only.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 5.5 only +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_x.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_x.yasnippet index 0b38eac..17e31d6 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_x.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 5_x.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 5.x +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 and below.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 and below.yasnippet index 655bc71..23dd74e 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 and below.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 and below.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 6 and below +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 only.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 only.yasnippet index d527e52..b35dff4 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 only.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 6 only.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 6 only +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 7+.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 7+.yasnippet index fa28ca4..2e82875 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 7+.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer 7+.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer 7 and above +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer.yasnippet index 6ef4da3..dcb89cd 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: Internet Explorer.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: Internet Explorer +## condition: "text.html" # -- $0 \ No newline at end of file diff --git a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: NOT Internet Explorer.yasnippet b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: NOT Internet Explorer.yasnippet index b3a1d12..fc12208 100644 --- a/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: NOT Internet Explorer.yasnippet +++ b/extras/imported/html-mode/Conditional Comments/IE Conditional Comment: NOT Internet Explorer.yasnippet @@ -2,5 +2,6 @@ # key: ! # contributor: Translated from TextMate Snippet # name: IE Conditional Comment: NOT Internet Explorer +## condition: "text.html" # -- ${1:${TM_SELECTED_TEXT: IE Conditional Comment: NOT Internet Explorer }}$0 \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Arrow (arrow).yasnippet b/extras/imported/html-mode/Entities/Arrow (arrow).yasnippet index c17107d..81134f1 100644 --- a/extras/imported/html-mode/Entities/Arrow (arrow).yasnippet +++ b/extras/imported/html-mode/Entities/Arrow (arrow).yasnippet @@ -2,5 +2,6 @@ # key: arrow # contributor: Translated from TextMate Snippet # name: → +## condition: "text.html" # -- → \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Backspace (backspace).yasnippet b/extras/imported/html-mode/Entities/Backspace (backspace).yasnippet index 9cd9da8..0a9838c 100644 --- a/extras/imported/html-mode/Entities/Backspace (backspace).yasnippet +++ b/extras/imported/html-mode/Entities/Backspace (backspace).yasnippet @@ -2,5 +2,6 @@ # key: backspace # contributor: Translated from TextMate Snippet # name: ⌫ +## condition: "text.html" # -- ⌫ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Backtab (backtab).yasnippet b/extras/imported/html-mode/Entities/Backtab (backtab).yasnippet index abb36dd..5924578 100644 --- a/extras/imported/html-mode/Entities/Backtab (backtab).yasnippet +++ b/extras/imported/html-mode/Entities/Backtab (backtab).yasnippet @@ -2,5 +2,6 @@ # key: backtab # contributor: Translated from TextMate Snippet # name: ⇤ +## condition: "text.html" # -- ⇤ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Command (command).yasnippet b/extras/imported/html-mode/Entities/Command (command).yasnippet index 7eea1de..3b63c10 100644 --- a/extras/imported/html-mode/Entities/Command (command).yasnippet +++ b/extras/imported/html-mode/Entities/Command (command).yasnippet @@ -2,5 +2,6 @@ # key: command # contributor: Translated from TextMate Snippet # name: ⌘ +## condition: "text.html" # -- ⌘ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Control (control).yasnippet b/extras/imported/html-mode/Entities/Control (control).yasnippet index f93699d..18694c2 100644 --- a/extras/imported/html-mode/Entities/Control (control).yasnippet +++ b/extras/imported/html-mode/Entities/Control (control).yasnippet @@ -2,5 +2,6 @@ # key: control # contributor: Translated from TextMate Snippet # name: ⌃ +## condition: "text.html" # -- ⌃ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Delete (delete).yasnippet b/extras/imported/html-mode/Entities/Delete (delete).yasnippet index 3f593cb..af7f1fa 100644 --- a/extras/imported/html-mode/Entities/Delete (delete).yasnippet +++ b/extras/imported/html-mode/Entities/Delete (delete).yasnippet @@ -2,5 +2,6 @@ # key: delete # contributor: Translated from TextMate Snippet # name: ⌦ +## condition: "text.html" # -- ⌦ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Down (down).yasnippet b/extras/imported/html-mode/Entities/Down (down).yasnippet index a41c942..c076e92 100644 --- a/extras/imported/html-mode/Entities/Down (down).yasnippet +++ b/extras/imported/html-mode/Entities/Down (down).yasnippet @@ -2,5 +2,6 @@ # key: down # contributor: Translated from TextMate Snippet # name: ↓ +## condition: "text.html" # -- ↓ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Enter (enter).yasnippet b/extras/imported/html-mode/Entities/Enter (enter).yasnippet index 42f7dc8..66c87bf 100644 --- a/extras/imported/html-mode/Entities/Enter (enter).yasnippet +++ b/extras/imported/html-mode/Entities/Enter (enter).yasnippet @@ -2,5 +2,6 @@ # key: enter # contributor: Translated from TextMate Snippet # name: ⌅ +## condition: "text.html" # -- ⌅ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Escape (escape).yasnippet b/extras/imported/html-mode/Entities/Escape (escape).yasnippet index a0dc7ad..34bb6fd 100644 --- a/extras/imported/html-mode/Entities/Escape (escape).yasnippet +++ b/extras/imported/html-mode/Entities/Escape (escape).yasnippet @@ -2,5 +2,6 @@ # key: escape # contributor: Translated from TextMate Snippet # name: ⎋ +## condition: "text.html" # -- ⎋ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Left (left).yasnippet b/extras/imported/html-mode/Entities/Left (left).yasnippet index 952b26b..51b4b22 100644 --- a/extras/imported/html-mode/Entities/Left (left).yasnippet +++ b/extras/imported/html-mode/Entities/Left (left).yasnippet @@ -2,5 +2,6 @@ # key: left # contributor: Translated from TextMate Snippet # name: ← +## condition: "text.html" # -- ← \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Option (option).yasnippet b/extras/imported/html-mode/Entities/Option (option).yasnippet index ac932c9..df15448 100644 --- a/extras/imported/html-mode/Entities/Option (option).yasnippet +++ b/extras/imported/html-mode/Entities/Option (option).yasnippet @@ -2,5 +2,6 @@ # key: option # contributor: Translated from TextMate Snippet # name: ⌥ +## condition: "text.html" # -- ⌥ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Return (return).yasnippet b/extras/imported/html-mode/Entities/Return (return).yasnippet index 6720b2c..99eb9c7 100644 --- a/extras/imported/html-mode/Entities/Return (return).yasnippet +++ b/extras/imported/html-mode/Entities/Return (return).yasnippet @@ -2,5 +2,6 @@ # key: return # contributor: Translated from TextMate Snippet # name: ↩ +## condition: "text.html" # -- ↩ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Right (right).yasnippet b/extras/imported/html-mode/Entities/Right (right).yasnippet index 390dd03..c849ea5 100644 --- a/extras/imported/html-mode/Entities/Right (right).yasnippet +++ b/extras/imported/html-mode/Entities/Right (right).yasnippet @@ -2,5 +2,6 @@ # key: right # contributor: Translated from TextMate Snippet # name: → +## condition: "text.html" # -- → \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Shift (shift).yasnippet b/extras/imported/html-mode/Entities/Shift (shift).yasnippet index 4a6a679..0dab354 100644 --- a/extras/imported/html-mode/Entities/Shift (shift).yasnippet +++ b/extras/imported/html-mode/Entities/Shift (shift).yasnippet @@ -2,5 +2,6 @@ # key: shift # contributor: Translated from TextMate Snippet # name: ⇧ +## condition: "text.html" # -- ⇧ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Tab (tab).yasnippet b/extras/imported/html-mode/Entities/Tab (tab).yasnippet index 5372cfa..5c952b2 100644 --- a/extras/imported/html-mode/Entities/Tab (tab).yasnippet +++ b/extras/imported/html-mode/Entities/Tab (tab).yasnippet @@ -2,5 +2,6 @@ # key: tab # contributor: Translated from TextMate Snippet # name: ⇥ +## condition: "text.html" # -- ⇥ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/Up (up).yasnippet b/extras/imported/html-mode/Entities/Up (up).yasnippet index eddc205..32a0055 100644 --- a/extras/imported/html-mode/Entities/Up (up).yasnippet +++ b/extras/imported/html-mode/Entities/Up (up).yasnippet @@ -2,5 +2,6 @@ # key: up # contributor: Translated from TextMate Snippet # name: ↑ +## condition: "text.html" # -- ↑ \ No newline at end of file diff --git a/extras/imported/html-mode/Entities/XHTML   NonBreakingSpace.yasnippet b/extras/imported/html-mode/Entities/XHTML   NonBreakingSpace.yasnippet index 3f98dfc..d331dff 100644 --- a/extras/imported/html-mode/Entities/XHTML   NonBreakingSpace.yasnippet +++ b/extras/imported/html-mode/Entities/XHTML   NonBreakingSpace.yasnippet @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # contributor: Translated from TextMate Snippet # name: Non-Breaking Space -# binding: "~ " +## binding: "~ " +## condition: "text.html" # --   \ No newline at end of file diff --git a/extras/imported/html-mode/Format/Emphasize.yasnippet b/extras/imported/html-mode/Format/Emphasize.yasnippet index 83f2955..a32a4b7 100644 --- a/extras/imported/html-mode/Format/Emphasize.yasnippet +++ b/extras/imported/html-mode/Format/Emphasize.yasnippet @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # contributor: Translated from TextMate Snippet # name: Emphasize -# binding: "@i" +# binding: "A-i" +## condition: "text.html" # -- -${0:${TM_SELECTED_TEXT/\A(.*)<\/em>\z|.*/(?1:$1:$0<\/em>)/m}} \ No newline at end of file +(yas/html-wrap-selection-if-not-wrapped-already "em") diff --git a/extras/imported/html-mode/Format/Strong.yasnippet b/extras/imported/html-mode/Format/Strong.yasnippet index ae3c561..1811554 100644 --- a/extras/imported/html-mode/Format/Strong.yasnippet +++ b/extras/imported/html-mode/Format/Strong.yasnippet @@ -1,6 +1,8 @@ # -*- mode: snippet -*- +# type: command # contributor: Translated from TextMate Snippet # name: Strong -# binding: "@b" +# binding: "A-b" +## condition: "text.html" # -- -${0:${TM_SELECTED_TEXT/\A(.*)<\/strong>\z|.*/(?1:$1:$0<\/strong>)/m}} \ No newline at end of file +(yas/html-wrap-selection-if-not-wrapped-already "strong") diff --git a/extras/imported/html-mode/Insert DocType/DocType HTML 4.0 Strict.yasnippet b/extras/imported/html-mode/Insert DocType/DocType HTML 4.0 Strict.yasnippet index 96ea8d0..3627764 100644 --- a/extras/imported/html-mode/Insert DocType/DocType HTML 4.0 Strict.yasnippet +++ b/extras/imported/html-mode/Insert DocType/DocType HTML 4.0 Strict.yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: HTML — 4.01 Strict +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert DocType/DocType XHTL 1.0 Frameset.yasnippet b/extras/imported/html-mode/Insert DocType/DocType XHTL 1.0 Frameset.yasnippet index 6e60da5..587b5eb 100644 --- a/extras/imported/html-mode/Insert DocType/DocType XHTL 1.0 Frameset.yasnippet +++ b/extras/imported/html-mode/Insert DocType/DocType XHTL 1.0 Frameset.yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: XHTML — 1.0 Frameset +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Strict.yasnippet b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Strict.yasnippet index 4f13fe1..d31abf7 100644 --- a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Strict.yasnippet +++ b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Strict.yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: XHTML — 1.0 Strict +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Transitional.yasnippet b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Transitional.yasnippet index e1c658a..8be5ccc 100644 --- a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Transitional.yasnippet +++ b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.0 Transitional.yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: XHTML — 1.0 Transitional +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.1.yasnippet b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.1.yasnippet index 3fb49ba..379e3c0 100644 --- a/extras/imported/html-mode/Insert DocType/DocType XHTML 1.1.yasnippet +++ b/extras/imported/html-mode/Insert DocType/DocType XHTML 1.1.yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: XHTML — 1.1 +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert DocType/HTML — 4.0 Transitional (doctype).yasnippet b/extras/imported/html-mode/Insert DocType/HTML — 4.0 Transitional (doctype).yasnippet index 6e16083..d8e7f41 100644 --- a/extras/imported/html-mode/Insert DocType/HTML — 4.0 Transitional (doctype).yasnippet +++ b/extras/imported/html-mode/Insert DocType/HTML — 4.0 Transitional (doctype).yasnippet @@ -2,6 +2,7 @@ # key: doctype # contributor: Translated from TextMate Snippet # name: HTML — 4.01 Transitional +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert Tag Pair.yasnippet b/extras/imported/html-mode/Insert Tag Pair.yasnippet new file mode 100644 index 0000000..c6c43fa --- /dev/null +++ b/extras/imported/html-mode/Insert Tag Pair.yasnippet @@ -0,0 +1,48 @@ +# -*- mode: snippet -*- +# type: command +# contributor: joaotavora, adapted from TextMate HTML bundle, work in progress +# name: Insert Open/Close Tag (With Current Word) +# binding: "^<" +## condition: "text.html," +# -- +(let* ((tag yas/selected-text) + (single-no-arg "\\(br\\|hr\\)") + (single "\\(img\\|meta\\|link\\|input\\|base\\|area\\|col\\|frame\\|param\\)")) + (cond ((string-match single-no-arg yas/selected-text)))) +# This script will expand the current word into: <word></word> +# It will recognize HTML 4.0 tags that need no close tag. +# +# With no current word, it will insert: <p></p> and allows you +# to overwrite the tag name and add potential arguments. +# +# The result is inserted as a snippet, so it's +# possible to tab through the place holders. + +# single tags +single_no_arg = /^(?:br|hr)$/i +single = /^(?:img|meta|link|input|base|area|col|frame|param)$/i + +# we are not in HTML mode, so let's scrap the above hardcoded tag lists +unless ENV.has_key? 'TM_HTML_EMPTY_TAGS' then + single_no_arg = /(?=not)possible/ + single = /(?=not)possible/ +end + +# handle the case where caret is in the middle of a word, assume only the left part is the tag +index = ENV['TM_LINE_INDEX'].to_i - ENV['TM_INPUT_START_LINE_INDEX'].to_i +tag, suffix = STDIN.read, '' +if index < tag.length && !ENV['TM_SELECTED_TEXT'] + tag, suffix = tag[0...index], tag[index..-1] +end + +xhtml = ENV['TM_XHTML'].to_s + +print case tag + when single_no_arg then "<#{tag}#{xhtml}>" + when single then "<#{tag} $1#{xhtml}>" + when '' then "<${1:#{ENV['TM_DEFAULT_TAG'] || 'p'}}>$2</${1/\\s.*//}>" + else "<#{tag}>$1</#{tag.strip[/^\S+/]}>" +end + +print suffix + diff --git a/extras/imported/html-mode/Insert Tag/Embed QT movie (movie).yasnippet b/extras/imported/html-mode/Insert Tag/Embed QT movie (movie).yasnippet index 766b1cc..b717869 100644 --- a/extras/imported/html-mode/Insert Tag/Embed QT movie (movie).yasnippet +++ b/extras/imported/html-mode/Insert Tag/Embed QT movie (movie).yasnippet @@ -2,6 +2,7 @@ # key: movie # contributor: Translated from TextMate Snippet # name: Embed QT Movie +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert Tag/Fieldset.yasnippet b/extras/imported/html-mode/Insert Tag/Fieldset.yasnippet index 0b8ad5b..fb35442 100644 --- a/extras/imported/html-mode/Insert Tag/Fieldset.yasnippet +++ b/extras/imported/html-mode/Insert Tag/Fieldset.yasnippet @@ -2,6 +2,7 @@ # key: fieldset # contributor: Translated from TextMate Snippet # name: Fieldset +## condition: "text.html" # --
${1:`yas/selected-text`} diff --git a/extras/imported/html-mode/Insert Tag/Input with Label.yasnippet b/extras/imported/html-mode/Insert Tag/Input with Label.yasnippet index fecfb2d..4bd61d7 100644 --- a/extras/imported/html-mode/Insert Tag/Input with Label.yasnippet +++ b/extras/imported/html-mode/Insert Tag/Input with Label.yasnippet @@ -2,5 +2,6 @@ # key: input # contributor: Translated from TextMate Snippet # name: Input with Label +## condition: "text.html" # -- diff --git a/extras/imported/html-mode/Insert Tag/Option.yasnippet b/extras/imported/html-mode/Insert Tag/Option.yasnippet index aa56d7c..464ed53 100644 --- a/extras/imported/html-mode/Insert Tag/Option.yasnippet +++ b/extras/imported/html-mode/Insert Tag/Option.yasnippet @@ -2,5 +2,6 @@ # key: opt # contributor: Translated from TextMate Snippet # name: Option +## condition: "text.html" # -- ${3:$2} \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/Select Box.yasnippet b/extras/imported/html-mode/Insert Tag/Select Box.yasnippet index 8a8a204..a68ace7 100644 --- a/extras/imported/html-mode/Insert Tag/Select Box.yasnippet +++ b/extras/imported/html-mode/Insert Tag/Select Box.yasnippet @@ -2,6 +2,7 @@ # key: select # contributor: Translated from TextMate Snippet # name: Select Box +## condition: "text.html" # -- .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index ea2b828..8d62d72 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,5 +2,6 @@ # key: input # contributor: Translated from TextMate Snippet # name: Input +## condition: "text.html" # -- \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index f665d30..e3e934f 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,5 +2,6 @@ # key: mailto # contributor: Translated from TextMate Snippet # name: Mail Anchor +## condition: "text.html" # -- ${3:email me} \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index 3d2d621..8bc9928 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,5 +2,6 @@ # key: base # contributor: Translated from TextMate Snippet # name: Base +## condition: "text.html" # -- \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index 46140d0..e538349 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,6 +2,7 @@ # key: body # contributor: Translated from TextMate Snippet # name: Body +## condition: "text.html" # -- $0 diff --git a/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet b/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet index ecfcf3b..017b084 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # contributor: Translated from TextMate Snippet # name: Br -# binding: "^ " +## binding: "^ " +## condition: "text.html" # -- \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet b/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet index b17f1e9..2feb9dd 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet @@ -2,6 +2,7 @@ # key: div # contributor: Translated from TextMate Snippet # name: Div +## condition: "text.html" # -- `yas/selected-text`$0 diff --git a/extras/imported/html-mode/Insert Tag/XHTML
.yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index a0ea4f9..6e21f87 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,6 +2,7 @@ # key: form # contributor: Translated from TextMate Snippet # name: Form +## condition: "text.html" # -- $0 diff --git a/extras/imported/html-mode/Insert Tag/XHTML

.yasnippet b/extras/imported/html-mode/Insert Tag/XHTML

.yasnippet index 9dc778a..9b144da 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML

.yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML

.yasnippet @@ -2,5 +2,6 @@ # key: h1 # contributor: Translated from TextMate Snippet # name: Heading +## condition: "text.html" # --

${1:`yas/selected-text`}

\ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index 8b632e1..19c1173 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,6 +2,7 @@ # key: head # contributor: Translated from TextMate Snippet # name: Head +## condition: "text.html - text.html source" # -- diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index 0777fd0..d2b7b94 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,5 +2,6 @@ # key: link # contributor: Translated from TextMate Snippet # name: Link +## condition: "text.html" # -- \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet index d1cfc97..829355a 100644 --- a/extras/imported/html-mode/Insert Tag/XHTML .yasnippet +++ b/extras/imported/html-mode/Insert Tag/XHTML .yasnippet @@ -2,5 +2,6 @@ # key: meta # contributor: Translated from TextMate Snippet # name: Meta +## condition: "text.html" # -- \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML \ No newline at end of file diff --git a/extras/imported/html-mode/Insert Tag/XHTML