Permalink
Browse files

Add Input with Label, Fieldset, Option and Select tag snippets, sent …

…in by Torsten Walter.

git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/HTML.tmbundle@8715 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 42b9ac4 commit 0c2cd2b5a4541e3ad9fb7bd4f41de388ca87bd14 msheets committed Dec 24, 2007
Showing with 91 additions and 0 deletions.
  1. +22 −0 Snippets/Fieldset.tmSnippet
  2. +19 −0 Snippets/Input with Label.tmSnippet
  3. +18 −0 Snippets/Option.tmSnippet
  4. +22 −0 Snippets/Select Box.tmSnippet
  5. +10 −0 info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string>
+ <key>content</key>
+ <string>&lt;fieldset id="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}" ${2:class="${3:}"}&gt;
+ &lt;legend&gt;${1:$TM_SELECTED_TEXT}&lt;/legend&gt;
+
+ $0
+&lt;/fieldset&gt;</string>
+ <key>name</key>
+ <string>Fieldset</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>fieldset</string>
+ <key>uuid</key>
+ <string>9BD2BE01-A854-4D55-B584-725D04C075C0</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string>
+ <key>content</key>
+ <string>&lt;label for="${2:${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}}"&gt;$1&lt;/label&gt;&lt;input type="${3:text/submit/hidden/button}" name="${4:$2}" value="$5"${6: id="${7:$2}"}${TM_XHTML}&gt;
+</string>
+ <key>name</key>
+ <string>Input with Label</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>input</string>
+ <key>uuid</key>
+ <string>D8DCCC81-749A-4E2A-B4BC-D109D5799CAA</string>
+</dict>
+</plist>
View
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string>
+ <key>content</key>
+ <string>&lt;option${1: value="${2:option}"}&gt;${3:$2}&lt;/option&gt;</string>
+ <key>name</key>
+ <string>Option</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>opt</string>
+ <key>uuid</key>
+ <string>5820372E-A093-4F38-B25C-B0CCC50A0FC4</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string>
+ <key>content</key>
+ <string>&lt;select name="${1:some_name}" id="${2:$1}"${3:${4: multiple}${5: onchange="${6:}"}${7: size="${8:1}"}}&gt;
+ &lt;option${9: value="${10:option1}"}&gt;${11:$10}&lt;/option&gt;
+ &lt;option${12: value="${13:option2}"}&gt;${14:$13}&lt;/option&gt;${15:}
+ $0
+&lt;/select&gt;</string>
+ <key>name</key>
+ <string>Select Box</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>select</string>
+ <key>uuid</key>
+ <string>26023CFF-C73F-4EF5-9803-E4DBA2CBEADD</string>
+</dict>
+</plist>
View
@@ -48,6 +48,7 @@
<string>912906A0-9A29-434B-AE98-E9DFDE6E48B4</string>
<string>------------------------------------</string>
<string>20D760B5-A127-11D9-A5A2-000D93C8BE28</string>
+ <string>45F92B81-6F0E-11D9-A1E4-000D9332809C</string>
</array>
<key>submenus</key>
<dict>
@@ -83,15 +84,19 @@
<string>3E008E42-A5C9-11D9-9BCD-000D93C8BE28</string>
<string>576036C0-A60E-11D9-ABD6-000D93C8BE28</string>
<string>42F15753-9B6D-4DD8-984C-807B94363277</string>
+ <string>9BD2BE01-A854-4D55-B584-725D04C075C0</string>
<string>232C2E8B-A08E-11D9-A5A2-000D93C8BE28</string>
<string>9CF008C4-A086-11D9-A5A2-000D93C8BE28</string>
<string>65BA66DC-A07F-11D9-A5A2-000D93C8BE28</string>
<string>44180979-A08E-11D9-A5A2-000D93C8BE28</string>
+ <string>D8DCCC81-749A-4E2A-B4BC-D109D5799CAA</string>
<string>77BFD0C0-A08A-11D9-A5A2-000D93C8BE28</string>
<string>81DA4C74-A530-11D9-9BCD-000D93C8BE28</string>
<string>DA99AC44-A083-11D9-A5A2-000D93C8BE28</string>
+ <string>5820372E-A093-4F38-B25C-B0CCC50A0FC4</string>
<string>6592050A-A087-11D9-A5A2-000D93C8BE28</string>
<string>7D676C4C-A087-11D9-A5A2-000D93C8BE28</string>
+ <string>26023CFF-C73F-4EF5-9803-E4DBA2CBEADD</string>
<string>3C518074-A088-11D9-A5A2-000D93C8BE28</string>
<string>57176082-A12F-11D9-A5A2-000D93C8BE28</string>
<string>AAC9D7B8-A12C-11D9-A5A2-000D93C8BE28</string>
@@ -211,16 +216,20 @@
<string>3E008E42-A5C9-11D9-9BCD-000D93C8BE28</string>
<string>576036C0-A60E-11D9-ABD6-000D93C8BE28</string>
<string>42F15753-9B6D-4DD8-984C-807B94363277</string>
+ <string>9BD2BE01-A854-4D55-B584-725D04C075C0</string>
<string>232C2E8B-A08E-11D9-A5A2-000D93C8BE28</string>
<string>9CF008C4-A086-11D9-A5A2-000D93C8BE28</string>
<string>65BA66DC-A07F-11D9-A5A2-000D93C8BE28</string>
<string>44180979-A08E-11D9-A5A2-000D93C8BE28</string>
+ <string>D8DCCC81-749A-4E2A-B4BC-D109D5799CAA</string>
<string>77BFD0C0-A08A-11D9-A5A2-000D93C8BE28</string>
<string>81DA4C74-A530-11D9-9BCD-000D93C8BE28</string>
<string>DA99AC44-A083-11D9-A5A2-000D93C8BE28</string>
<string>73B40BAE-A295-11D9-87F7-000D93C8BE28</string>
+ <string>5820372E-A093-4F38-B25C-B0CCC50A0FC4</string>
<string>6592050A-A087-11D9-A5A2-000D93C8BE28</string>
<string>7D676C4C-A087-11D9-A5A2-000D93C8BE28</string>
+ <string>26023CFF-C73F-4EF5-9803-E4DBA2CBEADD</string>
<string>3C518074-A088-11D9-A5A2-000D93C8BE28</string>
<string>57176082-A12F-11D9-A5A2-000D93C8BE28</string>
<string>AAC9D7B8-A12C-11D9-A5A2-000D93C8BE28</string>
@@ -276,6 +285,7 @@
<string>48DF7485-52EA-49B3-88AF-3A41F933F325</string>
<string>CBC24AF4-88E0-498B-BE50-934B9CF29EC7</string>
<string>F00170EE-4A82-413F-A88B-85293E69A88B</string>
+ <string>45F92B81-6F0E-11D9-A1E4-000D9332809C</string>
</array>
<key>uuid</key>
<string>4676FC6D-6227-11D9-BFB1-000D93589AF6</string>

0 comments on commit 0c2cd2b

Please sign in to comment.