]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/snippets/html.snippets
Add simplified modules
[rbdr/dotfiles] / vim / snippets / html.snippets
CommitLineData
0d23b6e5
BB
1# Some useful Unicode entities
2# Non-Breaking Space
3snippet nbs
4  
5# ←
6snippet left
7 ←
8# →
9snippet right
10 →
11# ↑
12snippet up
13 ↑
14# ↓
15snippet down
16 ↓
17# ↩
18snippet return
19 ↩
20# ⇤
21snippet backtab
22 ⇤
23# ⇥
24snippet tab
25 ⇥
26# ⇧
27snippet shift
28 ⇧
29# ⌃
30snippet control
31 ⌃
32# ⌅
33snippet enter
34 ⌅
35# ⌘
36snippet command
37 ⌘
38# ⌥
39snippet option
40 ⌥
41# ⌦
42snippet delete
43 ⌦
44# ⌫
45snippet backspace
46 ⌫
47# ⎋
48snippet escape
49 ⎋
50# Generic Doctype
51snippet doctype HTML 4.01 Strict
52 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
53 "http://www.w3.org/TR/html4/strict.dtd">
54snippet doctype HTML 4.01 Transitional
55 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
56 "http://www.w3.org/TR/html4/loose.dtd">
57snippet doctype HTML 5
58 <!DOCTYPE HTML>
59snippet doctype XHTML 1.0 Frameset
60 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
61 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
62snippet doctype XHTML 1.0 Strict
63 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
64 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
65snippet doctype XHTML 1.0 Transitional
66 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
67 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
68snippet doctype XHTML 1.1
69 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
70 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
71# HTML Doctype 4.01 Strict
72snippet docts
73 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
74 "http://www.w3.org/TR/html4/strict.dtd">
75# HTML Doctype 4.01 Transitional
76snippet doct
77 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
78 "http://www.w3.org/TR/html4/loose.dtd">
79# HTML Doctype 5
80snippet doct5
81 <!DOCTYPE HTML>
82# XHTML Doctype 1.0 Frameset
83snippet docxf
84 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
85 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
86# XHTML Doctype 1.0 Strict
87snippet docxs
88 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
89 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
90# XHTML Doctype 1.0 Transitional
91snippet docxt
92 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
93 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
94# XHTML Doctype 1.1
95snippet docx
96 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
97 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
98snippet html
99 <html>
100 ${1}
101 </html>
102snippet xhtml
103 <html xmlns="http://www.w3.org/1999/xhtml">
104 ${1}
105 </html>
106snippet body
107 <body>
108 ${1}
109 </body>
110snippet head
111 <head>
112 <meta http-equiv="content-type" content="text/html; charset=utf-8"`Close()`>
113
114 <title>${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
115 ${2}
116 </head>
117snippet title
118 <title>${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`}</title>${2}
119snippet script
120 <script type="text/javascript" charset="utf-8">
121 ${1}
122 </script>${2}
123snippet scriptsrc
124 <script src="${1}.js" type="text/javascript" charset="utf-8"></script>${2}
125snippet style
126 <style type="text/css" media="${1:screen}">
127 ${2}
128 </style>${3}
129snippet base
130 <base href="${1}" target="${2}"`Close()`>
131snippet r
132 <br`Close()[1:]`>
133snippet div
134 <div id="${1:name}">
135 ${2}
136 </div>
137# Embed QT Movie
138snippet movie
139 <object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
140 codebase="http://www.apple.com/qtactivex/qtplugin.cab">
141 <param name="src" value="$1"`Close()`>
142 <param name="controller" value="$4"`Close()`>
143 <param name="autoplay" value="$5"`Close()`>
144 <embed src="${1:movie.mov}"
145 width="${2:320}" height="${3:240}"
146 controller="${4:true}" autoplay="${5:true}"
147 scale="tofit" cache="true"
148 pluginspage="http://www.apple.com/quicktime/download/"
149 `Close()[1:]`>
150 </object>${6}
151snippet fieldset
152 <fieldset id="$1">
153 <legend>${1:name}</legend>
154
155 ${3}
156 </fieldset>
157snippet form
158 <form action="${1:`Filename('$1_submit')`}" method="${2:get}" accept-charset="utf-8">
159 ${3}
160
161
162 <p><input type="submit" value="Continue &rarr;"`Close()`></p>
163 </form>
164snippet h1
165 <h1 id="${1:heading}">${2:$1}</h1>
166snippet input
167 <input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="${3}"`Close()`>${4}
168snippet label
169 <label for="${2:$1}">${1:name}</label><input type="${3:text/submit/hidden/button}" name="${4:$2}" value="${5}" id="${6:$2}"`Close()`>${7}
170snippet link
171 <link rel="${1:stylesheet}" href="${2:/css/master.css}" type="text/css" media="${3:screen}" charset="utf-8"`Close()`>${4}
172snippet mailto
173 <a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>
174snippet meta
175 <meta name="${1:name}" content="${2:content}"`Close()`>${3}
176snippet opt
177 <option value="${1:option}">${2:$1}</option>${3}
178snippet optt
179 <option>${1:option}</option>${2}
180snippet select
181 <select name="${1:some_name}" id="${2:$1}">
182 <option value="${3:option}">${4:$3}</option>
183 </select>${5}
184snippet table
185 <table border="${1:0}">
186 <tr><th>${2:Header}</th></tr>
187 <tr><th>${3:Data}</th></tr>
188 </table>${4}
189snippet textarea
190 <textarea name="${1:Name}" rows="${2:8}" cols="${3:40}">${4}</textarea>${5}