]> code.delx.au - gnu-emacs-elpa/blob - extras/imported/html-mode/.yas-setup.el
adding a very basic erb-mode
[gnu-emacs-elpa] / extras / imported / html-mode / .yas-setup.el
1 ;; .yas-setup.el for html-mode
2
3 (defvar yas/html-default-tag "p")
4
5 (defvar yas/html-xhtml-attr "")
6
7 (defvar yas/html-just-like-tm nil
8 "Html-mode snippets behave as close to TextMate as possible.")
9
10 (defun yas/html-remove-preceding-word ()
11 (interactive)
12 (let (word-begin
13 word-end
14 (line-beginning-position (line-beginning-position))
15 (orig-point (point))
16 retval)
17 (save-excursion
18 (when (and (forward-word -1)
19 (setq word-begin (point))
20 (forward-word 1)
21 (setq word-end (point))
22 (< word-begin orig-point)
23 (>= word-end orig-point)
24 (<= (line-beginning-position) word-begin)
25 ;; (not (string-match "^[\s\t]+$" " "))
26 )
27 (setq retval
28 (cons
29 (buffer-substring-no-properties word-begin orig-point)
30 (buffer-substring-no-properties word-end orig-point)))
31 (delete-region word-begin word-end)
32 retval))))
33
34
35 (defun yas/html-first-word (string)
36 (replace-regexp-in-string "\\\W.*" "" string))
37
38 (defun yas/html-insert-tag-pair-snippet ()
39 (let* ((tag-and-suffix (or (and yas/selected-text
40 (cons yas/selected-text nil))
41 (yas/html-remove-preceding-word)))
42 (tag (car tag-and-suffix))
43 (suffix (or (cdr tag-and-suffix) ""))
44 (single-no-arg "\\(br\\|hr\\)")
45 (single "\\(img\\|meta\\|link\\|input\\|base\\|area\\|col\\|frame\\|param\\)"))
46 (cond ((null tag)
47 (yas/expand-snippet (format "<${1:%s}>%s</${1:$(yas/html-first-word yas/text)}>%s"
48 (or yas/html-default-tag
49 "p")
50 (if yas/html-just-like-tm "$2" "$0")
51 suffix)))
52 ((string-match single-no-arg tag)
53 (insert (format "<%s%s/>%s" tag yas/html-xhtml-attr suffix)))
54 ((string-match single tag)
55 (yas/expand-snippet (format "<%s $1%s/>%s" tag yas/html-xhtml-attr suffix)))
56 (t
57 (yas/expand-snippet (format "<%s>%s</%s>%s"
58 tag
59 (if yas/html-just-like-tm "$1" "$0")
60 (replace-regexp-in-string "\\\W.*" "" tag)
61 suffix))))))
62
63 (defun yas/html-wrap-each-line-in-openclose-tag ()
64 (let* ((mirror "${1:$(yas/html-first-word yas/text)}")
65 (yas/html-wrap-newline (when (string-match "\n" yas/selected-text) "\n"))
66 (template (concat (format "<${1:%s}>" (or yas/html-default-tag "p"))
67 yas/selected-text
68 "</" mirror ">")))
69 (setq template (replace-regexp-in-string "\n" (concat "</" mirror ">\n<$1>") template))
70 (yas/expand-snippet template)))
71
72 (defun yas/html-toggle-wrap (string wrap)
73 (or (and string
74 (string-match (format "<%s>\\(.*\\)</%s>" wrap wrap)
75 string)
76 (match-string 1 string))
77 (concat "<em>" string "</em>")))
78
79 (defun yas/html-between-tag-pair-p ()
80 (save-excursion
81 (backward-word)
82 (looking-at "\\\w+></\\\w+>")))
83
84 (defun yas/html-id-from-string (string)
85 (replace-regexp-in-string " " "_" (downcase string)))
86
87 (defun yas/html-tidy ()
88 (interactive)
89 (let ((start (or (and mark-active
90 (region-beginning))
91 (point-min)))
92 (end (or (and mark-active
93 (region-end))
94 (point-max)))
95 (orig (point))
96 (orig-line (count-screen-lines (window-start) (line-beginning-position))))
97 (shell-command-on-region start end "tidy" (current-buffer) t (get-buffer-create "*tidy errors*") t)
98 (goto-char (min (point-max) orig))
99 (recenter (1- orig-line))))
100
101 (defun yas/html-tag-description ()
102 (interactive)
103 (let* ((tag-at-point (sgml-beginning-of-tag))
104 (fragment (and tag-at-point
105 (aget yas/html-tag-description-urls (upcase tag-at-point)))))
106 (if fragment
107 (browse-url (concat "http://www.w3.org/TR/html4/index/"
108 fragment))
109 (if tag-at-point
110 (message "No documentation for " tag-at-point)
111 (message "Not on a HTML tag.")))))
112
113 (defvar yas/html-tag-description-urls
114 '(("A" . "../struct/links.html#edef-A")
115 ("ABBR" . "../struct/text.html#edef-ABBR")
116 ("ACRONYM" . "../struct/text.html#edef-ACRONYM")
117 ("ADDRESS" . "../struct/global.html#edef-ADDRESS")
118 ("APPLET" . "../struct/objects.html#edef-APPLET")
119 ("AREA" . "../struct/objects.html#edef-AREA")
120 ("B" . "../present/graphics.html#edef-B")
121 ("BASE" . "../struct/links.html#edef-BASE")
122 ("BASEFONT" . "../present/graphics.html#edef-BASEFONT")
123 ("BDO" . "../struct/dirlang.html#edef-BDO")
124 ("BIG" . "../present/graphics.html#edef-BIG")
125 ("BLOCKQUOTE" . "../struct/text.html#edef-BLOCKQUOTE")
126 ("BODY" . "../struct/global.html#edef-BODY")
127 ("BR" . "../struct/text.html#edef-BR")
128 ("BUTTON" . "../interact/forms.html#edef-BUTTON")
129 ("CAPTION" . "../struct/tables.html#edef-CAPTION")
130 ("CENTER" . "../present/graphics.html#edef-CENTER")
131 ("CITE" . "../struct/text.html#edef-CITE")
132 ("CODE" . "../struct/text.html#edef-CODE")
133 ("COL" . "../struct/tables.html#edef-COL")
134 ("COLGROUP" . "../struct/tables.html#edef-COLGROUP")
135 ("DD" . "../struct/lists.html#edef-DD")
136 ("DEL" . "../struct/text.html#edef-del")
137 ("DFN" . "../struct/text.html#edef-DFN")
138 ("DIR" . "../struct/lists.html#edef-DIR")
139 ("DIV" . "../struct/global.html#edef-DIV")
140 ("DL" . "../struct/lists.html#edef-DL")
141 ("DT" . "../struct/lists.html#edef-DT")
142 ("EM" . "../struct/text.html#edef-EM")
143 ("FIELDSET" . "../interact/forms.html#edef-FIELDSET")
144 ("FONT" . "../present/graphics.html#edef-FONT")
145 ("FORM" . "../interact/forms.html#edef-FORM")
146 ("FRAME" . "../present/frames.html#edef-FRAME")
147 ("FRAMESET" . "../present/frames.html#edef-FRAMESET")
148 ("H1" . "../struct/global.html#edef-H1")
149 ("H2" . "../struct/global.html#edef-H2")
150 ("H3" . "../struct/global.html#edef-H3")
151 ("H4" . "../struct/global.html#edef-H4")
152 ("H5" . "../struct/global.html#edef-H5")
153 ("H6" . "../struct/global.html#edef-H6")
154 ("HEAD" . "../struct/global.html#edef-HEAD")
155 ("HR" . "../present/graphics.html#edef-HR")
156 ("HTML" . "../struct/global.html#edef-HTML")
157 ("I" . "../present/graphics.html#edef-I")
158 ("IFRAME" . "../present/frames.html#edef-IFRAME")
159 ("IMG" . "../struct/objects.html#edef-IMG")
160 ("INPUT" . "../interact/forms.html#edef-INPUT")
161 ("INS" . "../struct/text.html#edef-ins")
162 ("ISINDEX" . "../interact/forms.html#edef-ISINDEX")
163 ("KBD" . "../struct/text.html#edef-KBD")
164 ("LABEL" . "../interact/forms.html#edef-LABEL")
165 ("LEGEND" . "../interact/forms.html#edef-LEGEND")
166 ("LI" . "../struct/lists.html#edef-LI")
167 ("LINK" . "../struct/links.html#edef-LINK")
168 ("MAP" . "../struct/objects.html#edef-MAP")
169 ("MENU" . "../struct/lists.html#edef-MENU")
170 ("META" . "../struct/global.html#edef-META")
171 ("NOFRAMES" . "../present/frames.html#edef-NOFRAMES")
172 ("NOSCRIPT" . "../interact/scripts.html#edef-NOSCRIPT")
173 ("OBJECT" . "../struct/objects.html#edef-OBJECT")
174 ("OL" . "../struct/lists.html#edef-OL")
175 ("OPTGROUP" . "../interact/forms.html#edef-OPTGROUP")
176 ("OPTION" . "../interact/forms.html#edef-OPTION")
177 ("P" . "../struct/text.html#edef-P")
178 ("PARAM" . "../struct/objects.html#edef-PARAM")
179 ("PRE" . "../struct/text.html#edef-PRE")
180 ("Q" . "../struct/text.html#edef-Q")
181 ("S" . "../present/graphics.html#edef-S")
182 ("SAMP" . "../struct/text.html#edef-SAMP")
183 ("SCRIPT" . "../interact/scripts.html#edef-SCRIPT")
184 ("SELECT" . "../interact/forms.html#edef-SELECT")
185 ("SMALL" . "../present/graphics.html#edef-SMALL")
186 ("SPAN" . "../struct/global.html#edef-SPAN")
187 ("STRIKE" . "../present/graphics.html#edef-STRIKE")
188 ("STRONG" . "../struct/text.html#edef-STRONG")
189 ("STYLE" . "../present/styles.html#edef-STYLE")
190 ("SUB" . "../struct/text.html#edef-SUB")
191 ("SUP" . "../struct/text.html#edef-SUP")
192 ("TABLE" . "../struct/tables.html#edef-TABLE")
193 ("TBODY" . "../struct/tables.html#edef-TBODY")
194 ("TD" . "../struct/tables.html#edef-TD")
195 ("TEXTAREA" . "../interact/forms.html#edef-TEXTAREA")
196 ("TFOOT" . "../struct/tables.html#edef-TFOOT")
197 ("TH" . "../struct/tables.html#edef-TH")
198 ("THEAD" . "../struct/tables.html#edef-THEAD")
199 ("TITLE" . "../struct/global.html#edef-TITLE")
200 ("TR" . "../struct/tables.html#edef-TR")
201 ("TT" . "../present/graphics.html#edef-TT")
202 ("U" . "../present/graphics.html#edef-U")
203 ("UL" . "../struct/lists.html#edef-UL")
204 ("VAR" . "../struct/text.html#edef-VAR")))
205
206 ;;
207 ;;
208 ;; Substitutions for: content
209 ;; # as in Snippets/Emphasize.yasnippet
210 ;; ${TM_SELECTED_TEXT/\A<em>(.*)<\/em>\z|.*/(?1:$1:<em>$0<\/em>)/m} =yyas> `(yas/html-toggle-wrap yas/selected-text "em")`
211 ;; ${TM_SELECTED_TEXT/\A<strong>(.*)<\/strong>\z|.*/(?1:$1:<strong>$0<\/strong>)/m} =yyas> `(yas/html-toggle-wrap yas/selected-text "strong")`
212 ;; ${1/\s.*//} =yyas> ${1:$(replace-regexp-in-string "^[\s\t\n]*" "" yas/text)}
213 ;; ${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g} =yyas> ${1:$(replace-regexp-in-string " " "_" (downcase yas/text))}
214 ;; ${TM_XHTML} =yyas> `yas/html-xhtml-attr`
215
216
217 ;; # as in Commands/Preview in All Active Browsers.yasnippet
218 ;; 970EE6B4-A091-11D9-A5A2-000D93C8BE28 =yyas> (browse-url-of-buffer)
219 ;; 637CEA2B-578C-429C-BB74-30E8D42BFA22 =yyas> (yas/html-tag-description)
220 ;; 2ED44A32-C353-447F-BAE4-E3522DB6944D =yyas> (yas/html-insert-tag-pair-snippet)
221 ;; 991E7EBD-F3F5-469A-BA01-DC30E04AD472 =yyas> (yas/html-wrap-each-line-in-openclose-tag)
222
223 ;; Substitutions for: binding
224 ;;
225 ;; # as in Snippets/Strong.yasnippet
226 ;; @b =yyas> s-b
227 ;;
228 ;; # as in Snippets/Emphasize.yasnippet
229 ;; @i =yyas> s-i
230 ;;
231 ;; # as in Snippets/Wrap Selection In Tag.yasnippet
232 ;; ^W =yyas> C-c M-w
233 ;;
234 ;; # as in Commands/Insert Tag Pair.yasnippet
235 ;; ^< =yyas> C-<
236 ;;
237 ;; # as in Commands/Documentation for Tag.yasnippet
238 ;; ^h =yyas> C-c M-h
239 ;;
240 ;; # as in Commands/Wrap Each Selected Line in OpenClose Tag.yasnippet
241 ;; ^@W =yyas> C-c M-W
242 ;;
243 ;; # as in Snippets/XHTML &nbsp NonBreakingSpace.yasnippet
244 ;; ~ =yyas> (yas/unknown)
245 ;;
246 ;; # as in Commands/Insert Entity.yasnippet
247 ;; @& =yyas> (yas/unknown)
248 ;;
249 ;; # as in Commands/Refresh All Active Browsers.yasnippet
250 ;; @r =yyas> (yas/unknown)
251 ;;
252 ;; # as in Commands/Persistent Include.yasnippet
253 ;; ^@i =yyas> (yas/unknown)
254 ;;
255 ;; # as in Commands/CodeCompletion HTML Tags.yasnippet
256 ;; ~\e =yyas> (yas/unknown)
257 ;;
258 ;; # as in Commands/Update Includes.yasnippet
259 ;; ^@u =yyas> (yas/unknown)
260 ;;
261 ;; # as in Macros/Delete whitespace between tags.yasnippet
262 ;; ^~ =yyas> (yas/unknown)
263 ;;
264 ;; # as in Commands/Tidy.yasnippet
265 ;; ^H =yyas> (yas/unknown)
266 ;;
267 ;;
268 ;; --**--
269 ;; Automatically generated code, do not edit this part
270 ;;
271 ;; Translated menu
272 ;;
273 (yas/define-menu 'html-mode
274 '(;; Documentation for Tag
275 (yas/item "637CEA2B-578C-429C-BB74-30E8D42BFA22")
276 ;; Ignoring Validate Syntax (W3C)
277 (yas/ignore-item "3F26240E-6E4A-11D9-B411-000D93589AF6")
278
279 ;; Open Document in Running Browser(s)
280 (yas/item "970EE6B4-A091-11D9-A5A2-000D93C8BE28")
281 ;; Ignoring Refresh Running Browser(s)
282 (yas/ignore-item "B8651C6E-A05E-11D9-86AC-000D93C8BE28")
283
284 (yas/submenu "Entities"
285 (;; Ignoring Convert Character / Selection to Entities
286 (yas/ignore-item "3DD8406C-A116-11D9-A5A2-000D93C8BE28")
287 ;; Ignoring Convert Character / Selection to Entities Excl. Tags
288 (yas/ignore-item "43C9E8AE-3E53-4B82-A1AF-56697BB3EF09")
289 ;; Ignoring Decode Entities in Line / Selection
290 (yas/ignore-item "C183920D-A126-11D9-A5A2-000D93C8BE28")
291
292 ;; Non-Breaking Space
293 (yas/item "73B40BAE-A295-11D9-87F7-000D93C8BE28")
294 ;; →
295 (yas/item "C70BB693-0954-4440-AEB4-F2ADD6D923F0")
296 ;; ←
297 (yas/item "C0418A4A-7E42-4D49-8F86-6E339296CB84")
298 ;; ⇤
299 (yas/item "7F102705-27D8-4029-BF61-2F042FB61E06")
300 ;; ⌅
301 (yas/item "7062316B-4236-4793-AD35-05E4A6577393")
302 ;; ⌃
303 (yas/item "B4987DA5-9C2F-4D2D-AC14-678115079205")
304 ;; ⌦
305 (yas/item "44E448B6-37CE-4BFE-8611-C5113593B74B")
306 ;; ↩
307 (yas/item "9B216475-D73D-4518-851F-CACD0066A909")
308 ;; ⇥
309 (yas/item "ADC78A82-40C2-4AAC-8968-93AF0ED98DF0")
310 ;; ⌫
311 (yas/item "38E50882-27AF-4246-A039-355C3E1A699E")
312 ;; ⌘
313 (yas/item "7214ACD1-93D9-4D3F-A428-8A7302E0A35E")
314 ;; ↓
315 (yas/item "35654B4E-2D76-4CD3-8FBB-2DA1F314BA19")
316 ;; →
317 (yas/item "AC15621A-8A16-40DD-A671-EA4C37637215")
318 ;; ↑
319 (yas/item "0E2F4A47-EADE-4A05-931E-FC874FA28FC3")
320 ;; ⇧
321 (yas/item "1B8D58B9-D9DB-484C-AACD-5D5DF5385308")
322 ;; ⎋
323 (yas/item "D7CC7C7C-CD01-4357-AF91-AEFFD914DF98")
324 ;; ⌥
325 (yas/item "980A8D39-CA8B-4EC2-9739-DC36A262F28E")
326 (yas/separator)
327 ;; Ignoring Insert Entity…
328 (yas/ignore-item "89E5CC0A-3EFF-4DEF-A299-2E9651DE6529")))
329 (yas/submenu "URL Escapes"
330 (;; Ignoring URL Escape Line / Selection
331 (yas/ignore-item "6B024865-6095-4CE3-8EDD-DC6F2230C2FF")
332 ;; Ignoring URL Unescape Line / Selection
333 (yas/ignore-item "2C4C9673-B166-432A-8938-75A5CA622481")))
334 ;; Ignoring Encrypt Line / Selection (ROT 13)
335 (yas/ignore-item "9B13543F-8356-443C-B6E7-D9259B604927")
336
337 ;; Ignoring CodeCompletion HTML Attributes
338 (yas/ignore-item "CBD82CF3-74E9-4E7A-B3F6-9348754EB5AA")
339 ;; Insert Open/Close Tag (With Current Word)
340 (yas/item "2ED44A32-C353-447F-BAE4-E3522DB6944D")
341 ;; Ignoring Insert Close Tag
342 (yas/ignore-item "0658019F-3635-462E-AAC2-74E4FE508A9B")
343 (yas/submenu "Insert DocType"
344 (;; HTML — 4.01 Strict
345 (yas/item "944F1410-188C-4D70-8340-CECAA56FC7F2")
346 ;; HTML — 4.01 Transitional
347 (yas/item "B2AAEE56-42D8-42C3-8F67-865473F50E8D")
348 (yas/separator)
349 ;; XHTML — 1.0 Frameset
350 (yas/item "9ED6ABBE-A802-11D9-BFC8-000D93C8BE28")
351 ;; XHTML — 1.0 Strict
352 (yas/item "C8B83564-A802-11D9-BFC8-000D93C8BE28")
353 ;; XHTML — 1.0 Transitional
354 (yas/item "7D8C2F74-A802-11D9-BFC8-000D93C8BE28")
355 ;; XHTML — 1.1
356 (yas/item "5CE8FC6E-A802-11D9-BFC8-000D93C8BE28")))
357 (yas/submenu "Insert Tag"
358 (;; Ignoring CodeCompletion HTML Tags
359 (yas/ignore-item "3463E85F-F500-49A0-8631-D78ED85F9D60")
360
361 ;; Base
362 (yas/item "4462A6B8-A08A-11D9-A5A2-000D93C8BE28")
363 ;; Body
364 (yas/item "4905D47B-A08B-11D9-A5A2-000D93C8BE28")
365 ;; Br
366 (yas/item "3E008E42-A5C9-11D9-9BCD-000D93C8BE28")
367 ;; Div
368 (yas/item "576036C0-A60E-11D9-ABD6-000D93C8BE28")
369 ;; Embed QT Movie
370 (yas/item "42F15753-9B6D-4DD8-984C-807B94363277")
371 ;; Fieldset
372 (yas/item "9BD2BE01-A854-4D55-B584-725D04C075C0")
373 ;; Form
374 (yas/item "232C2E8B-A08E-11D9-A5A2-000D93C8BE28")
375 ;; Head
376 (yas/item "9CF008C4-A086-11D9-A5A2-000D93C8BE28")
377 ;; Heading
378 (yas/item "65BA66DC-A07F-11D9-A5A2-000D93C8BE28")
379 ;; Input
380 (yas/item "44180979-A08E-11D9-A5A2-000D93C8BE28")
381 ;; Input with Label
382 (yas/item "D8DCCC81-749A-4E2A-B4BC-D109D5799CAA")
383 ;; Link
384 (yas/item "77BFD0C0-A08A-11D9-A5A2-000D93C8BE28")
385 ;; Mail Anchor
386 (yas/item "81DA4C74-A530-11D9-9BCD-000D93C8BE28")
387 ;; Meta
388 (yas/item "DA99AC44-A083-11D9-A5A2-000D93C8BE28")
389 ;; Option
390 (yas/item "5820372E-A093-4F38-B25C-B0CCC50A0FC4")
391 ;; Script
392 (yas/item "6592050A-A087-11D9-A5A2-000D93C8BE28")
393 ;; Script With External Source
394 (yas/item "7D676C4C-A087-11D9-A5A2-000D93C8BE28")
395 ;; Select Box
396 (yas/item "26023CFF-C73F-4EF5-9803-E4DBA2CBEADD")
397 ;; Style
398 (yas/item "3C518074-A088-11D9-A5A2-000D93C8BE28")
399 ;; Table
400 (yas/item "57176082-A12F-11D9-A5A2-000D93C8BE28")
401 ;; Text Area
402 (yas/item "AAC9D7B8-A12C-11D9-A5A2-000D93C8BE28")
403 ;; Title
404 (yas/item "B62ECABE-A086-11D9-A5A2-000D93C8BE28")))
405
406 (yas/submenu "Includes"
407 (;; Ignoring Add Persistent Include
408 (yas/ignore-item "0D814247-7A00-46EE-A2A4-45FBBF4B1181")
409 ;; Ignoring Update Document
410 (yas/ignore-item "4400BCE9-20E3-426E-B1D7-2C0BCA53BCF8")
411 ;; Ignoring Help: Persistent Includes
412 (yas/ignore-item "9AFDEB2C-D9F0-423E-8211-EBB089F51F0C")))
413 (yas/submenu "Format"
414 (;; Strong
415 (yas/item "4117D930-B6FA-4022-97E7-ECCAF4E70F63")
416 ;; Emphasize
417 (yas/item "EBB98620-3292-4621-BA38-D8A9A65D9551")))
418 (yas/submenu "Conditional Comments"
419 (;; IE Conditional Comment: Internet Explorer
420 (yas/item "0ED6DA73-F38F-4A65-B18F-3379D2BA9387")
421 ;; IE Conditional Comment: Internet Explorer 5.0 only
422 (yas/item "3A517A94-001E-464D-8184-1FE56D0D0D70")
423 ;; IE Conditional Comment: Internet Explorer 5.5 only
424 (yas/item "E3F8984E-7269-4981-9D30-967AB56A6ACE")
425 ;; IE Conditional Comment: Internet Explorer 5.x
426 (yas/item "F3512848-7889-45DA-993B-0547976C8E6D")
427 ;; IE Conditional Comment: Internet Explorer 6 and below
428 (yas/item "32BBB9AB-8732-4F91-A587-354941A27B69")
429 ;; IE Conditional Comment: Internet Explorer 6 only
430 (yas/item "48DF7485-52EA-49B3-88AF-3A41F933F325")
431 ;; IE Conditional Comment: Internet Explorer 7 and above
432 (yas/item "CBC24AF4-88E0-498B-BE50-934B9CF29EC7")
433 ;; IE Conditional Comment: NOT Internet Explorer
434 (yas/item "F00170EE-4A82-413F-A88B-85293E69A88B")))
435
436 ;; Wrap Selection in Open/Close Tag
437 (yas/item "BC8B8AE2-5F16-11D9-B9C3-000D93589AF6")
438 ;; Wrap Each Selected Line in Open/Close Tag
439 (yas/item "991E7EBD-F3F5-469A-BA01-DC30E04AD472")
440 ;; Wrap in <?= … ?>
441 (yas/item "912906A0-9A29-434B-AE98-E9DFDE6E48B4")
442 (yas/separator)
443 ;; Ignoring Strip HTML Tags from Document / Selection
444 (yas/ignore-item "20D760B5-A127-11D9-A5A2-000D93C8BE28")
445 ;; Ignoring Tidy
446 (yas/ignore-item "45F92B81-6F0E-11D9-A1E4-000D9332809C"))
447 '("7B7E945E-A112-11D9-A5A2-000D93C8BE28"
448 "3C44EABE-8D6F-4B1B-AB91-F419FAD1A0AD"
449 "4400BCE9-20E3-426E-B1D7-2C0BCA53BCF8"
450 "3463E85F-F500-49A0-8631-D78ED85F9D60"
451 "CBD82CF3-74E9-4E7A-B3F6-9348754EB5AA"
452 "9B13543F-8356-443C-B6E7-D9259B604927"
453 "0D814247-7A00-46EE-A2A4-45FBBF4B1181"
454 "9AFDEB2C-D9F0-423E-8211-EBB089F51F0C"
455 "C8B717C2-6B33-11D9-BB47-000D93589AF6"
456 "CD6D2CC6-6B33-11D9-BDFD-000D93589AF6"
457 "B23D6E15-6B33-11D9-86C1-000D93589AF6"
458 "7B7E945E-A112-11D9-A5A2-000D93C8BE28"
459 "45F92B81-6F0E-11D9-A1E4-000D9332809C"
460 "3DD8406C-A116-11D9-A5A2-000D93C8BE28"
461 "3F26240E-6E4A-11D9-B411-000D93589AF6"
462 "43C9E8AE-3E53-4B82-A1AF-56697BB3EF09"
463 "89E5CC0A-3EFF-4DEF-A299-2E9651DE6529"
464 "2C4C9673-B166-432A-8938-75A5CA622481"
465 "6B024865-6095-4CE3-8EDD-DC6F2230C2FF"
466 "0658019F-3635-462E-AAC2-74E4FE508A9B"
467 "20D760B5-A127-11D9-A5A2-000D93C8BE28"
468 "B8651C6E-A05E-11D9-86AC-000D93C8BE28"
469 "C183920D-A126-11D9-A5A2-000D93C8BE28"
470 "CDE8EFD6-9DE2-4E8C-BB6A-52E8CCD2E977"
471 "E6F19171-F664-4B4F-92DA-3E15E6CAD35C"
472 "EBEE6B51-29C7-4362-818F-A190CACD5296"
473 "26068A55-4C84-409D-BA00-162B55AF6961"
474 "65D38039-6B0A-48E9-9E49-43832ECC4107"
475 "04332FA8-8157-46C4-9854-8C190FFD96C6"))
476
477 ;; Unknown substitutions
478 ;;
479 ;; Substitutions for: content
480 ;;
481 ;; # as in Templates/XHTML 1.1/info.yasnippet
482 ;; CDE8EFD6-9DE2-4E8C-BB6A-52E8CCD2E977 =yyas> (yas/unknown)
483 ;;
484 ;; # as in Snippets/IE Conditional Comment Internet Explorer 5_0 only.yasnippet
485 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 5.0 only ")` =yyas> (yas/unknown)
486 ;;
487 ;; # as in Snippets/IE Conditional Comment Internet Explorer.yasnippet
488 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer ")` =yyas> (yas/unknown)
489 ;;
490 ;; # as in Commands/CodeCompletion HTML Tags.yasnippet
491 ;; 3463E85F-F500-49A0-8631-D78ED85F9D60 =yyas> (yas/unknown)
492 ;;
493 ;; # as in Snippets/Emphasize.yasnippet
494 ;; `(yas/html-toggle-wrap yas/selected-text "em")` =yyas> (yas/unknown)
495 ;;
496 ;; # as in Templates/HTML 4.0 Transitional/info.yasnippet
497 ;; E6F19171-F664-4B4F-92DA-3E15E6CAD35C =yyas> (yas/unknown)
498 ;;
499 ;; # as in Commands/Insert Entity.yasnippet
500 ;; 89E5CC0A-3EFF-4DEF-A299-2E9651DE6529 =yyas> (yas/unknown)
501 ;;
502 ;; # as in Commands/Convert to HTML Entities.yasnippet
503 ;; 3DD8406C-A116-11D9-A5A2-000D93C8BE28 =yyas> (yas/unknown)
504 ;;
505 ;; # as in Snippets/XHTML body.yasnippet
506 ;; ${TM_FILENAME/(.*)\..*/\L$1/} =yyas> (yas/unknown)
507 ;;
508 ;; # as in Snippets/XHTML form.yasnippet
509 ;; ${TM_FILENAME/(.*?)\..*/$1_submit/} =yyas> (yas/unknown)
510 ;;
511 ;; # as in Commands/Persistent Include.yasnippet
512 ;; 0D814247-7A00-46EE-A2A4-45FBBF4B1181 =yyas> (yas/unknown)
513 ;;
514 ;; # as in Commands/Refresh All Active Browsers.yasnippet
515 ;; B8651C6E-A05E-11D9-86AC-000D93C8BE28 =yyas> (yas/unknown)
516 ;;
517 ;; # as in Snippets/Strong.yasnippet
518 ;; `(yas/html-toggle-wrap yas/selected-text "strong")` =yyas> (yas/unknown)
519 ;;
520 ;; # as in Snippets/IE Conditional Comment Internet Explorer 5_5 only.yasnippet
521 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 5.5 only ")` =yyas> (yas/unknown)
522 ;;
523 ;; # as in Commands/Insert Close Tag.yasnippet
524 ;; 0658019F-3635-462E-AAC2-74E4FE508A9B =yyas> (yas/unknown)
525 ;;
526 ;; # as in Commands/Decode Numeric URL Escapes in Line Selection.yasnippet
527 ;; 2C4C9673-B166-432A-8938-75A5CA622481 =yyas> (yas/unknown)
528 ;;
529 ;; # as in Commands/Convert to named entities excl tags.yasnippet
530 ;; 43C9E8AE-3E53-4B82-A1AF-56697BB3EF09 =yyas> (yas/unknown)
531 ;;
532 ;; # as in DragCommands/CSS Link.yasnippet
533 ;; C8B717C2-6B33-11D9-BB47-000D93589AF6 =yyas> (yas/unknown)
534 ;;
535 ;; # as in Commands/About Persistent Includes.yasnippet
536 ;; 9AFDEB2C-D9F0-423E-8211-EBB089F51F0C =yyas> (yas/unknown)
537 ;;
538 ;; # as in Snippets/XHTML link.yasnippet
539 ;; `yas/html-xhtml-attr` =yyas> (yas/unknown)
540 ;;
541 ;; # as in Templates/HTML 4.0 Strict/info.yasnippet
542 ;; 04332FA8-8157-46C4-9854-8C190FFD96C6 =yyas> (yas/unknown)
543 ;;
544 ;; # as in Macros/Delete whitespace between tags.yasnippet
545 ;; 7B7E945E-A112-11D9-A5A2-000D93C8BE28 =yyas> (yas/unknown)
546 ;;
547 ;; # as in DragCommands/Anchor Tag.yasnippet
548 ;; B23D6E15-6B33-11D9-86C1-000D93589AF6 =yyas> (yas/unknown)
549 ;;
550 ;; # as in Templates/XHTML 1.0 Transitional/info.yasnippet
551 ;; 65D38039-6B0A-48E9-9E49-43832ECC4107 =yyas> (yas/unknown)
552 ;;
553 ;; # as in Commands/Strip HTML tags.yasnippet
554 ;; 20D760B5-A127-11D9-A5A2-000D93C8BE28 =yyas> (yas/unknown)
555 ;;
556 ;; # as in Commands/Tidy.yasnippet
557 ;; 45F92B81-6F0E-11D9-A1E4-000D9332809C =yyas> (yas/unknown)
558 ;;
559 ;; # as in Snippets/XHTML title.yasnippet
560 ;; ${TM_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/} =yyas> (yas/unknown)
561 ;;
562 ;; # as in Commands/Encrypt Line Selection (ROT 13).yasnippet
563 ;; 9B13543F-8356-443C-B6E7-D9259B604927 =yyas> (yas/unknown)
564 ;;
565 ;; # as in Templates/XHTML 1.0 Strict/info.yasnippet
566 ;; EBEE6B51-29C7-4362-818F-A190CACD5296 =yyas> (yas/unknown)
567 ;;
568 ;; # as in Commands/Convert Line Selection to URL Escapes.yasnippet
569 ;; 6B024865-6095-4CE3-8EDD-DC6F2230C2FF =yyas> (yas/unknown)
570 ;;
571 ;; # as in Commands/W3C validation.yasnippet
572 ;; 3F26240E-6E4A-11D9-B411-000D93589AF6 =yyas> (yas/unknown)
573 ;;
574 ;; # as in Commands/CodeCompletion HTML Attributes.yasnippet
575 ;; CBD82CF3-74E9-4E7A-B3F6-9348754EB5AA =yyas> (yas/unknown)
576 ;;
577 ;; # as in Commands/Update Includes.yasnippet
578 ;; 4400BCE9-20E3-426E-B1D7-2C0BCA53BCF8 =yyas> (yas/unknown)
579 ;;
580 ;; # as in Snippets/IE Conditional Comment Internet Explorer 6 and below.yasnippet
581 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 6 and below ")` =yyas> (yas/unknown)
582 ;;
583 ;; # as in Snippets/IE Conditional Comment Internet Explorer 5_x.yasnippet
584 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 5.x ")` =yyas> (yas/unknown)
585 ;;
586 ;; # as in DragCommands/Image Tag.yasnippet
587 ;; CD6D2CC6-6B33-11D9-BDFD-000D93589AF6 =yyas> (yas/unknown)
588 ;;
589 ;; # as in Snippets/XHTML h1.yasnippet
590 ;; `yas/selected-text` =yyas> (yas/unknown)
591 ;;
592 ;; # as in Snippets/IE Conditional Comment NOT Internet Explorer.yasnippet
593 ;; `(or (yas/selected-text) " IE Conditional Comment: NOT Internet Explorer ")` =yyas> (yas/unknown)
594 ;;
595 ;; # as in Templates/XHTML 1.0 Frameset/info.yasnippet
596 ;; 26068A55-4C84-409D-BA00-162B55AF6961 =yyas> (yas/unknown)
597 ;;
598 ;; # as in Commands/Decode HTML Entities.yasnippet
599 ;; C183920D-A126-11D9-A5A2-000D93C8BE28 =yyas> (yas/unknown)
600 ;;
601 ;; # as in Snippets/IE Conditional Comment Internet Explorer 6 only.yasnippet
602 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 6 only ")` =yyas> (yas/unknown)
603 ;;
604 ;; # as in Snippets/IE Conditional Comment Internet Explorer 7+.yasnippet
605 ;; `(or (yas/selected-text) " IE Conditional Comment: Internet Explorer 7 and above ")` =yyas> (yas/unknown)
606 ;;
607 ;;
608
609 ;; Substitutions for: condition
610 ;;
611 ;; # as in Snippets/XHTML head.yasnippet
612 ;; text.html - text.html source =yyas> (yas/unknown)
613 ;;
614 ;; # as in Commands/CodeCompletion HTML Attributes.yasnippet
615 ;; text.html punctuation.definition.tag -source, text.html meta.tag -entity.other.attribute-name -source =yyas> (yas/unknown)
616 ;;
617 ;; # as in Snippets/Smart returnindent for tag pairs.yasnippet
618 ;; meta.scope.between-tag-pair =yyas> (yas/unknown)
619 ;;
620 ;; # as in Commands/CodeCompletion HTML Tags.yasnippet
621 ;; text.html -entity.other.attribute-name -string.quoted, invalid.illegal.incomplete.html =yyas> (yas/unknown)
622 ;;
623 ;; # as in Snippets/Wrap Selection In Tag.yasnippet
624 ;; text.html, =yyas> (yas/unknown)
625 ;;
626 ;; # as in Commands/Refresh All Active Browsers.yasnippet
627 ;; text.html, source.css =yyas> (yas/unknown)
628 ;;
629 ;; # as in Templates/HTML 4.0 Strict/info.yasnippet
630 ;; text.html =yyas> (yas/unknown)
631 ;;
632 ;; # as in Commands/Documentation for Tag.yasnippet
633 ;; text.html, text.html entity.name.tag =yyas> (yas/unknown)
634 ;;
635 ;; # as in Snippets/XHTML title.yasnippet
636 ;; text.html - text.blog =yyas> (yas/unknown)
637 ;;
638 ;; # as in Snippets/Wrap in =.yasnippet
639 ;; text.html string =yyas> (yas/unknown)
640 ;;
641 ;;
642
643 ;; Substitutions for: binding
644 ;;
645 ;; # as in Commands/W3C validation.yasnippet
646 ;; ^V =yyas> (yas/unknown)
647 ;;
648 ;; # as in Snippets/Smart returnindent for tag pairs.yasnippet
649 ;; =yyas> (yas/unknown)
650 ;;
651 ;; # as in Snippets/XHTML &nbsp NonBreakingSpace.yasnippet
652 ;; ~ =yyas> (yas/unknown)
653 ;;
654 ;; # as in Commands/Insert Close Tag.yasnippet
655 ;; ~@. =yyas> (yas/unknown)
656 ;;
657 ;; # as in Snippets/XHTML br.yasnippet
658 ;; ^ =yyas> (yas/unknown)
659 ;;
660 ;; # as in Commands/Decode HTML Entities.yasnippet
661 ;; @& =yyas> (yas/unknown)
662 ;;
663 ;; # as in Commands/Refresh All Active Browsers.yasnippet
664 ;; @r =yyas> (yas/unknown)
665 ;;
666 ;; # as in Commands/CodeCompletion HTML Attributes.yasnippet
667 ;; ~\e =yyas> (yas/unknown)
668 ;;
669 ;; # as in Commands/Update Includes.yasnippet
670 ;; ^@u =yyas> (yas/unknown)
671 ;;
672 ;; # as in Macros/Delete whitespace between tags.yasnippet
673 ;; ^~ =yyas> (yas/unknown)
674 ;;
675 ;; # as in Commands/Tidy.yasnippet
676 ;; ^H =yyas> (yas/unknown)
677 ;;
678 ;;
679
680 ;; .yas-setup.el for html-mode ends here