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