html.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. ace.define("ace/snippets/html",["require","exports","module"], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "# Some useful Unicode entities\n\
  4. # Non-Breaking Space\n\
  5. snippet nbs\n\
  6.  \n\
  7. # ←\n\
  8. snippet left\n\
  9. ←\n\
  10. # →\n\
  11. snippet right\n\
  12. →\n\
  13. # ↑\n\
  14. snippet up\n\
  15. ↑\n\
  16. # ↓\n\
  17. snippet down\n\
  18. ↓\n\
  19. # ↩\n\
  20. snippet return\n\
  21. ↩\n\
  22. # ⇤\n\
  23. snippet backtab\n\
  24. ⇤\n\
  25. # ⇥\n\
  26. snippet tab\n\
  27. ⇥\n\
  28. # ⇧\n\
  29. snippet shift\n\
  30. ⇧\n\
  31. # ⌃\n\
  32. snippet ctrl\n\
  33. ⌃\n\
  34. # ⌅\n\
  35. snippet enter\n\
  36. ⌅\n\
  37. # ⌘\n\
  38. snippet cmd\n\
  39. ⌘\n\
  40. # ⌥\n\
  41. snippet option\n\
  42. ⌥\n\
  43. # ⌦\n\
  44. snippet delete\n\
  45. ⌦\n\
  46. # ⌫\n\
  47. snippet backspace\n\
  48. ⌫\n\
  49. # ⎋\n\
  50. snippet esc\n\
  51. ⎋\n\
  52. # Generic Doctype\n\
  53. snippet doctype HTML 4.01 Strict\n\
  54. <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
  55. \"http://www.w3.org/TR/html4/strict.dtd\">\n\
  56. snippet doctype HTML 4.01 Transitional\n\
  57. <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\
  58. \"http://www.w3.org/TR/html4/loose.dtd\">\n\
  59. snippet doctype HTML 5\n\
  60. <!DOCTYPE HTML>\n\
  61. snippet doctype XHTML 1.0 Frameset\n\
  62. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
  63. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
  64. snippet doctype XHTML 1.0 Strict\n\
  65. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
  66. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
  67. snippet doctype XHTML 1.0 Transitional\n\
  68. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\
  69. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\
  70. snippet doctype XHTML 1.1\n\
  71. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\
  72. \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\
  73. # HTML Doctype 4.01 Strict\n\
  74. snippet docts\n\
  75. <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
  76. \"http://www.w3.org/TR/html4/strict.dtd\">\n\
  77. # HTML Doctype 4.01 Transitional\n\
  78. snippet doct\n\
  79. <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\
  80. \"http://www.w3.org/TR/html4/loose.dtd\">\n\
  81. # HTML Doctype 5\n\
  82. snippet doct5\n\
  83. <!DOCTYPE HTML>\n\
  84. # XHTML Doctype 1.0 Frameset\n\
  85. snippet docxf\n\
  86. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n\
  87. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n\
  88. # XHTML Doctype 1.0 Strict\n\
  89. snippet docxs\n\
  90. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
  91. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
  92. # XHTML Doctype 1.0 Transitional\n\
  93. snippet docxt\n\
  94. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\
  95. \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\
  96. # XHTML Doctype 1.1\n\
  97. snippet docx\n\
  98. <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\
  99. \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\
  100. # Attributes\n\
  101. snippet attr\n\
  102. ${1:attribute}=\"${2:property}\"\n\
  103. snippet attr+\n\
  104. ${1:attribute}=\"${2:property}\" attr+${3}\n\
  105. snippet .\n\
  106. class=\"${1}\"${2}\n\
  107. snippet #\n\
  108. id=\"${1}\"${2}\n\
  109. snippet alt\n\
  110. alt=\"${1}\"${2}\n\
  111. snippet charset\n\
  112. charset=\"${1:utf-8}\"${2}\n\
  113. snippet data\n\
  114. data-${1}=\"${2:$1}\"${3}\n\
  115. snippet for\n\
  116. for=\"${1}\"${2}\n\
  117. snippet height\n\
  118. height=\"${1}\"${2}\n\
  119. snippet href\n\
  120. href=\"${1:#}\"${2}\n\
  121. snippet lang\n\
  122. lang=\"${1:en}\"${2}\n\
  123. snippet media\n\
  124. media=\"${1}\"${2}\n\
  125. snippet name\n\
  126. name=\"${1}\"${2}\n\
  127. snippet rel\n\
  128. rel=\"${1}\"${2}\n\
  129. snippet scope\n\
  130. scope=\"${1:row}\"${2}\n\
  131. snippet src\n\
  132. src=\"${1}\"${2}\n\
  133. snippet title=\n\
  134. title=\"${1}\"${2}\n\
  135. snippet type\n\
  136. type=\"${1}\"${2}\n\
  137. snippet value\n\
  138. value=\"${1}\"${2}\n\
  139. snippet width\n\
  140. width=\"${1}\"${2}\n\
  141. # Elements\n\
  142. snippet a\n\
  143. <a href=\"${1:#}\">${2:$1}</a>\n\
  144. snippet a.\n\
  145. <a class=\"${1}\" href=\"${2:#}\">${3:$1}</a>\n\
  146. snippet a#\n\
  147. <a id=\"${1}\" href=\"${2:#}\">${3:$1}</a>\n\
  148. snippet a:ext\n\
  149. <a href=\"http://${1:example.com}\">${2:$1}</a>\n\
  150. snippet a:mail\n\
  151. <a href=\"mailto:${1:joe@example.com}?subject=${2:feedback}\">${3:email me}</a>\n\
  152. snippet abbr\n\
  153. <abbr title=\"${1}\">${2}</abbr>\n\
  154. snippet address\n\
  155. <address>\n\
  156. ${1}\n\
  157. </address>\n\
  158. snippet area\n\
  159. <area shape=\"${1:rect}\" coords=\"${2}\" href=\"${3}\" alt=\"${4}\" />\n\
  160. snippet area+\n\
  161. <area shape=\"${1:rect}\" coords=\"${2}\" href=\"${3}\" alt=\"${4}\" />\n\
  162. area+${5}\n\
  163. snippet area:c\n\
  164. <area shape=\"circle\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
  165. snippet area:d\n\
  166. <area shape=\"default\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
  167. snippet area:p\n\
  168. <area shape=\"poly\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
  169. snippet area:r\n\
  170. <area shape=\"rect\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
  171. snippet article\n\
  172. <article>\n\
  173. ${1}\n\
  174. </article>\n\
  175. snippet article.\n\
  176. <article class=\"${1}\">\n\
  177. ${2}\n\
  178. </article>\n\
  179. snippet article#\n\
  180. <article id=\"${1}\">\n\
  181. ${2}\n\
  182. </article>\n\
  183. snippet aside\n\
  184. <aside>\n\
  185. ${1}\n\
  186. </aside>\n\
  187. snippet aside.\n\
  188. <aside class=\"${1}\">\n\
  189. ${2}\n\
  190. </aside>\n\
  191. snippet aside#\n\
  192. <aside id=\"${1}\">\n\
  193. ${2}\n\
  194. </aside>\n\
  195. snippet audio\n\
  196. <audio src=\"${1}>${2}</audio>\n\
  197. snippet b\n\
  198. <b>${1}</b>\n\
  199. snippet base\n\
  200. <base href=\"${1}\" target=\"${2}\" />\n\
  201. snippet bdi\n\
  202. <bdi>${1}</bdo>\n\
  203. snippet bdo\n\
  204. <bdo dir=\"${1}\">${2}</bdo>\n\
  205. snippet bdo:l\n\
  206. <bdo dir=\"ltr\">${1}</bdo>\n\
  207. snippet bdo:r\n\
  208. <bdo dir=\"rtl\">${1}</bdo>\n\
  209. snippet blockquote\n\
  210. <blockquote>\n\
  211. ${1}\n\
  212. </blockquote>\n\
  213. snippet body\n\
  214. <body>\n\
  215. ${1}\n\
  216. </body>\n\
  217. snippet br\n\
  218. <br />${1}\n\
  219. snippet button\n\
  220. <button type=\"${1:submit}\">${2}</button>\n\
  221. snippet button.\n\
  222. <button class=\"${1:button}\" type=\"${2:submit}\">${3}</button>\n\
  223. snippet button#\n\
  224. <button id=\"${1}\" type=\"${2:submit}\">${3}</button>\n\
  225. snippet button:s\n\
  226. <button type=\"submit\">${1}</button>\n\
  227. snippet button:r\n\
  228. <button type=\"reset\">${1}</button>\n\
  229. snippet canvas\n\
  230. <canvas>\n\
  231. ${1}\n\
  232. </canvas>\n\
  233. snippet caption\n\
  234. <caption>${1}</caption>\n\
  235. snippet cite\n\
  236. <cite>${1}</cite>\n\
  237. snippet code\n\
  238. <code>${1}</code>\n\
  239. snippet col\n\
  240. <col />${1}\n\
  241. snippet col+\n\
  242. <col />\n\
  243. col+${1}\n\
  244. snippet colgroup\n\
  245. <colgroup>\n\
  246. ${1}\n\
  247. </colgroup>\n\
  248. snippet colgroup+\n\
  249. <colgroup>\n\
  250. <col />\n\
  251. col+${1}\n\
  252. </colgroup>\n\
  253. snippet command\n\
  254. <command type=\"command\" label=\"${1}\" icon=\"${2}\" />\n\
  255. snippet command:c\n\
  256. <command type=\"checkbox\" label=\"${1}\" icon=\"${2}\" />\n\
  257. snippet command:r\n\
  258. <command type=\"radio\" radiogroup=\"${1}\" label=\"${2}\" icon=\"${3}\" />\n\
  259. snippet datagrid\n\
  260. <datagrid>\n\
  261. ${1}\n\
  262. </datagrid>\n\
  263. snippet datalist\n\
  264. <datalist>\n\
  265. ${1}\n\
  266. </datalist>\n\
  267. snippet datatemplate\n\
  268. <datatemplate>\n\
  269. ${1}\n\
  270. </datatemplate>\n\
  271. snippet dd\n\
  272. <dd>${1}</dd>\n\
  273. snippet dd.\n\
  274. <dd class=\"${1}\">${2}</dd>\n\
  275. snippet dd#\n\
  276. <dd id=\"${1}\">${2}</dd>\n\
  277. snippet del\n\
  278. <del>${1}</del>\n\
  279. snippet details\n\
  280. <details>${1}</details>\n\
  281. snippet dfn\n\
  282. <dfn>${1}</dfn>\n\
  283. snippet dialog\n\
  284. <dialog>\n\
  285. ${1}\n\
  286. </dialog>\n\
  287. snippet div\n\
  288. <div>\n\
  289. ${1}\n\
  290. </div>\n\
  291. snippet div.\n\
  292. <div class=\"${1}\">\n\
  293. ${2}\n\
  294. </div>\n\
  295. snippet div#\n\
  296. <div id=\"${1}\">\n\
  297. ${2}\n\
  298. </div>\n\
  299. snippet dl\n\
  300. <dl>\n\
  301. ${1}\n\
  302. </dl>\n\
  303. snippet dl.\n\
  304. <dl class=\"${1}\">\n\
  305. ${2}\n\
  306. </dl>\n\
  307. snippet dl#\n\
  308. <dl id=\"${1}\">\n\
  309. ${2}\n\
  310. </dl>\n\
  311. snippet dl+\n\
  312. <dl>\n\
  313. <dt>${1}</dt>\n\
  314. <dd>${2}</dd>\n\
  315. dt+${3}\n\
  316. </dl>\n\
  317. snippet dt\n\
  318. <dt>${1}</dt>\n\
  319. snippet dt.\n\
  320. <dt class=\"${1}\">${2}</dt>\n\
  321. snippet dt#\n\
  322. <dt id=\"${1}\">${2}</dt>\n\
  323. snippet dt+\n\
  324. <dt>${1}</dt>\n\
  325. <dd>${2}</dd>\n\
  326. dt+${3}\n\
  327. snippet em\n\
  328. <em>${1}</em>\n\
  329. snippet embed\n\
  330. <embed src=${1} type=\"${2} />\n\
  331. snippet fieldset\n\
  332. <fieldset>\n\
  333. ${1}\n\
  334. </fieldset>\n\
  335. snippet fieldset.\n\
  336. <fieldset class=\"${1}\">\n\
  337. ${2}\n\
  338. </fieldset>\n\
  339. snippet fieldset#\n\
  340. <fieldset id=\"${1}\">\n\
  341. ${2}\n\
  342. </fieldset>\n\
  343. snippet fieldset+\n\
  344. <fieldset>\n\
  345. <legend><span>${1}</span></legend>\n\
  346. ${2}\n\
  347. </fieldset>\n\
  348. fieldset+${3}\n\
  349. snippet figcaption\n\
  350. <figcaption>${1}</figcaption>\n\
  351. snippet figure\n\
  352. <figure>${1}</figure>\n\
  353. snippet footer\n\
  354. <footer>\n\
  355. ${1}\n\
  356. </footer>\n\
  357. snippet footer.\n\
  358. <footer class=\"${1}\">\n\
  359. ${2}\n\
  360. </footer>\n\
  361. snippet footer#\n\
  362. <footer id=\"${1}\">\n\
  363. ${2}\n\
  364. </footer>\n\
  365. snippet form\n\
  366. <form action=\"${1}\" method=\"${2:get}\" accept-charset=\"utf-8\">\n\
  367. ${3}\n\
  368. </form>\n\
  369. snippet form.\n\
  370. <form class=\"${1}\" action=\"${2}\" method=\"${3:get}\" accept-charset=\"utf-8\">\n\
  371. ${4}\n\
  372. </form>\n\
  373. snippet form#\n\
  374. <form id=\"${1}\" action=\"${2}\" method=\"${3:get}\" accept-charset=\"utf-8\">\n\
  375. ${4}\n\
  376. </form>\n\
  377. snippet h1\n\
  378. <h1>${1}</h1>\n\
  379. snippet h1.\n\
  380. <h1 class=\"${1}\">${2}</h1>\n\
  381. snippet h1#\n\
  382. <h1 id=\"${1}\">${2}</h1>\n\
  383. snippet h2\n\
  384. <h2>${1}</h2>\n\
  385. snippet h2.\n\
  386. <h2 class=\"${1}\">${2}</h2>\n\
  387. snippet h2#\n\
  388. <h2 id=\"${1}\">${2}</h2>\n\
  389. snippet h3\n\
  390. <h3>${1}</h3>\n\
  391. snippet h3.\n\
  392. <h3 class=\"${1}\">${2}</h3>\n\
  393. snippet h3#\n\
  394. <h3 id=\"${1}\">${2}</h3>\n\
  395. snippet h4\n\
  396. <h4>${1}</h4>\n\
  397. snippet h4.\n\
  398. <h4 class=\"${1}\">${2}</h4>\n\
  399. snippet h4#\n\
  400. <h4 id=\"${1}\">${2}</h4>\n\
  401. snippet h5\n\
  402. <h5>${1}</h5>\n\
  403. snippet h5.\n\
  404. <h5 class=\"${1}\">${2}</h5>\n\
  405. snippet h5#\n\
  406. <h5 id=\"${1}\">${2}</h5>\n\
  407. snippet h6\n\
  408. <h6>${1}</h6>\n\
  409. snippet h6.\n\
  410. <h6 class=\"${1}\">${2}</h6>\n\
  411. snippet h6#\n\
  412. <h6 id=\"${1}\">${2}</h6>\n\
  413. snippet head\n\
  414. <head>\n\
  415. <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\
  416. \n\
  417. <title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
  418. ${2}\n\
  419. </head>\n\
  420. snippet header\n\
  421. <header>\n\
  422. ${1}\n\
  423. </header>\n\
  424. snippet header.\n\
  425. <header class=\"${1}\">\n\
  426. ${2}\n\
  427. </header>\n\
  428. snippet header#\n\
  429. <header id=\"${1}\">\n\
  430. ${2}\n\
  431. </header>\n\
  432. snippet hgroup\n\
  433. <hgroup>\n\
  434. ${1}\n\
  435. </hgroup>\n\
  436. snippet hgroup.\n\
  437. <hgroup class=\"${1}>\n\
  438. ${2}\n\
  439. </hgroup>\n\
  440. snippet hr\n\
  441. <hr />${1}\n\
  442. snippet html\n\
  443. <html>\n\
  444. ${1}\n\
  445. </html>\n\
  446. snippet xhtml\n\
  447. <html xmlns=\"http://www.w3.org/1999/xhtml\">\n\
  448. ${1}\n\
  449. </html>\n\
  450. snippet html5\n\
  451. <!DOCTYPE html>\n\
  452. <html>\n\
  453. <head>\n\
  454. <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\
  455. <title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
  456. ${2:meta}\n\
  457. </head>\n\
  458. <body>\n\
  459. ${3:body}\n\
  460. </body>\n\
  461. </html>\n\
  462. snippet i\n\
  463. <i>${1}</i>\n\
  464. snippet iframe\n\
  465. <iframe src=\"${1}\" frameborder=\"0\"></iframe>${2}\n\
  466. snippet iframe.\n\
  467. <iframe class=\"${1}\" src=\"${2}\" frameborder=\"0\"></iframe>${3}\n\
  468. snippet iframe#\n\
  469. <iframe id=\"${1}\" src=\"${2}\" frameborder=\"0\"></iframe>${3}\n\
  470. snippet img\n\
  471. <img src=\"${1}\" alt=\"${2}\" />${3}\n\
  472. snippet img.\n\
  473. <img class=\"${1}\" src=\"${2}\" alt=\"${3}\" />${4}\n\
  474. snippet img#\n\
  475. <img id=\"${1}\" src=\"${2}\" alt=\"${3}\" />${4}\n\
  476. snippet input\n\
  477. <input type=\"${1:text/submit/hidden/button/image}\" name=\"${2}\" id=\"${3:$2}\" value=\"${4}\" />${5}\n\
  478. snippet input.\n\
  479. <input class=\"${1}\" type=\"${2:text/submit/hidden/button/image}\" name=\"${3}\" id=\"${4:$3}\" value=\"${5}\" />${6}\n\
  480. snippet input:text\n\
  481. <input type=\"text\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  482. snippet input:submit\n\
  483. <input type=\"submit\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  484. snippet input:hidden\n\
  485. <input type=\"hidden\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  486. snippet input:button\n\
  487. <input type=\"button\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  488. snippet input:image\n\
  489. <input type=\"image\" name=\"${1}\" id=\"${2:$1}\" src=\"${3}\" alt=\"${4}\" />${5}\n\
  490. snippet input:checkbox\n\
  491. <input type=\"checkbox\" name=\"${1}\" id=\"${2:$1}\" />${3}\n\
  492. snippet input:radio\n\
  493. <input type=\"radio\" name=\"${1}\" id=\"${2:$1}\" />${3}\n\
  494. snippet input:color\n\
  495. <input type=\"color\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  496. snippet input:date\n\
  497. <input type=\"date\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  498. snippet input:datetime\n\
  499. <input type=\"datetime\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  500. snippet input:datetime-local\n\
  501. <input type=\"datetime-local\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  502. snippet input:email\n\
  503. <input type=\"email\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  504. snippet input:file\n\
  505. <input type=\"file\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  506. snippet input:month\n\
  507. <input type=\"month\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  508. snippet input:number\n\
  509. <input type=\"number\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  510. snippet input:password\n\
  511. <input type=\"password\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  512. snippet input:range\n\
  513. <input type=\"range\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  514. snippet input:reset\n\
  515. <input type=\"reset\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  516. snippet input:search\n\
  517. <input type=\"search\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  518. snippet input:time\n\
  519. <input type=\"time\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  520. snippet input:url\n\
  521. <input type=\"url\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  522. snippet input:week\n\
  523. <input type=\"week\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
  524. snippet ins\n\
  525. <ins>${1}</ins>\n\
  526. snippet kbd\n\
  527. <kbd>${1}</kbd>\n\
  528. snippet keygen\n\
  529. <keygen>${1}</keygen>\n\
  530. snippet label\n\
  531. <label for=\"${2:$1}\">${1}</label>\n\
  532. snippet label:i\n\
  533. <label for=\"${2:$1}\">${1}</label>\n\
  534. <input type=\"${3:text/submit/hidden/button}\" name=\"${4:$2}\" id=\"${5:$2}\" value=\"${6}\" />${7}\n\
  535. snippet label:s\n\
  536. <label for=\"${2:$1}\">${1}</label>\n\
  537. <select name=\"${3:$2}\" id=\"${4:$2}\">\n\
  538. <option value=\"${5}\">${6:$5}</option>\n\
  539. </select>\n\
  540. snippet legend\n\
  541. <legend>${1}</legend>\n\
  542. snippet legend+\n\
  543. <legend><span>${1}</span></legend>\n\
  544. snippet li\n\
  545. <li>${1}</li>\n\
  546. snippet li.\n\
  547. <li class=\"${1}\">${2}</li>\n\
  548. snippet li+\n\
  549. <li>${1}</li>\n\
  550. li+${2}\n\
  551. snippet lia\n\
  552. <li><a href=\"${2:#}\">${1}</a></li>\n\
  553. snippet lia+\n\
  554. <li><a href=\"${2:#}\">${1}</a></li>\n\
  555. lia+${3}\n\
  556. snippet link\n\
  557. <link rel=\"${1}\" href=\"${2}\" title=\"${3}\" type=\"${4}\" />${5}\n\
  558. snippet link:atom\n\
  559. <link rel=\"alternate\" href=\"${1:atom.xml}\" title=\"Atom\" type=\"application/atom+xml\" />${2}\n\
  560. snippet link:css\n\
  561. <link rel=\"stylesheet\" href=\"${2:style.css}\" type=\"text/css\" media=\"${3:all}\" />${4}\n\
  562. snippet link:favicon\n\
  563. <link rel=\"shortcut icon\" href=\"${1:favicon.ico}\" type=\"image/x-icon\" />${2}\n\
  564. snippet link:rss\n\
  565. <link rel=\"alternate\" href=\"${1:rss.xml}\" title=\"RSS\" type=\"application/atom+xml\" />${2}\n\
  566. snippet link:touch\n\
  567. <link rel=\"apple-touch-icon\" href=\"${1:favicon.png}\" />${2}\n\
  568. snippet map\n\
  569. <map name=\"${1}\">\n\
  570. ${2}\n\
  571. </map>\n\
  572. snippet map.\n\
  573. <map class=\"${1}\" name=\"${2}\">\n\
  574. ${3}\n\
  575. </map>\n\
  576. snippet map#\n\
  577. <map name=\"${1}\" id=\"${2:$1}>\n\
  578. ${3}\n\
  579. </map>\n\
  580. snippet map+\n\
  581. <map name=\"${1}\">\n\
  582. <area shape=\"${2}\" coords=\"${3}\" href=\"${4}\" alt=\"${5}\" />${6}\n\
  583. </map>${7}\n\
  584. snippet mark\n\
  585. <mark>${1}</mark>\n\
  586. snippet menu\n\
  587. <menu>\n\
  588. ${1}\n\
  589. </menu>\n\
  590. snippet menu:c\n\
  591. <menu type=\"context\">\n\
  592. ${1}\n\
  593. </menu>\n\
  594. snippet menu:t\n\
  595. <menu type=\"toolbar\">\n\
  596. ${1}\n\
  597. </menu>\n\
  598. snippet meta\n\
  599. <meta http-equiv=\"${1}\" content=\"${2}\" />${3}\n\
  600. snippet meta:compat\n\
  601. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=${1:7,8,edge}\" />${3}\n\
  602. snippet meta:refresh\n\
  603. <meta http-equiv=\"refresh\" content=\"text/html;charset=UTF-8\" />${3}\n\
  604. snippet meta:utf\n\
  605. <meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\" />${3}\n\
  606. snippet meter\n\
  607. <meter>${1}</meter>\n\
  608. snippet nav\n\
  609. <nav>\n\
  610. ${1}\n\
  611. </nav>\n\
  612. snippet nav.\n\
  613. <nav class=\"${1}\">\n\
  614. ${2}\n\
  615. </nav>\n\
  616. snippet nav#\n\
  617. <nav id=\"${1}\">\n\
  618. ${2}\n\
  619. </nav>\n\
  620. snippet noscript\n\
  621. <noscript>\n\
  622. ${1}\n\
  623. </noscript>\n\
  624. snippet object\n\
  625. <object data=\"${1}\" type=\"${2}\">\n\
  626. ${3}\n\
  627. </object>${4}\n\
  628. # Embed QT Movie\n\
  629. snippet movie\n\
  630. <object width=\"$2\" height=\"$3\" classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"\n\
  631. codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">\n\
  632. <param name=\"src\" value=\"$1\" />\n\
  633. <param name=\"controller\" value=\"$4\" />\n\
  634. <param name=\"autoplay\" value=\"$5\" />\n\
  635. <embed src=\"${1:movie.mov}\"\n\
  636. width=\"${2:320}\" height=\"${3:240}\"\n\
  637. controller=\"${4:true}\" autoplay=\"${5:true}\"\n\
  638. scale=\"tofit\" cache=\"true\"\n\
  639. pluginspage=\"http://www.apple.com/quicktime/download/\" />\n\
  640. </object>${6}\n\
  641. snippet ol\n\
  642. <ol>\n\
  643. ${1}\n\
  644. </ol>\n\
  645. snippet ol.\n\
  646. <ol class=\"${1}>\n\
  647. ${2}\n\
  648. </ol>\n\
  649. snippet ol#\n\
  650. <ol id=\"${1}>\n\
  651. ${2}\n\
  652. </ol>\n\
  653. snippet ol+\n\
  654. <ol>\n\
  655. <li>${1}</li>\n\
  656. li+${2}\n\
  657. </ol>\n\
  658. snippet opt\n\
  659. <option value=\"${1}\">${2:$1}</option>\n\
  660. snippet opt+\n\
  661. <option value=\"${1}\">${2:$1}</option>\n\
  662. opt+${3}\n\
  663. snippet optt\n\
  664. <option>${1}</option>\n\
  665. snippet optgroup\n\
  666. <optgroup>\n\
  667. <option value=\"${1}\">${2:$1}</option>\n\
  668. opt+${3}\n\
  669. </optgroup>\n\
  670. snippet output\n\
  671. <output>${1}</output>\n\
  672. snippet p\n\
  673. <p>${1}</p>\n\
  674. snippet param\n\
  675. <param name=\"${1}\" value=\"${2}\" />${3}\n\
  676. snippet pre\n\
  677. <pre>\n\
  678. ${1}\n\
  679. </pre>\n\
  680. snippet progress\n\
  681. <progress>${1}</progress>\n\
  682. snippet q\n\
  683. <q>${1}</q>\n\
  684. snippet rp\n\
  685. <rp>${1}</rp>\n\
  686. snippet rt\n\
  687. <rt>${1}</rt>\n\
  688. snippet ruby\n\
  689. <ruby>\n\
  690. <rp><rt>${1}</rt></rp>\n\
  691. </ruby>\n\
  692. snippet s\n\
  693. <s>${1}</s>\n\
  694. snippet samp\n\
  695. <samp>\n\
  696. ${1}\n\
  697. </samp>\n\
  698. snippet script\n\
  699. <script type=\"text/javascript\" charset=\"utf-8\">\n\
  700. ${1}\n\
  701. </script>\n\
  702. snippet scriptsrc\n\
  703. <script src=\"${1}.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\
  704. snippet section\n\
  705. <section>\n\
  706. ${1}\n\
  707. </section>\n\
  708. snippet section.\n\
  709. <section class=\"${1}\">\n\
  710. ${2}\n\
  711. </section>\n\
  712. snippet section#\n\
  713. <section id=\"${1}\">\n\
  714. ${2}\n\
  715. </section>\n\
  716. snippet select\n\
  717. <select name=\"${1}\" id=\"${2:$1}\">\n\
  718. ${3}\n\
  719. </select>\n\
  720. snippet select.\n\
  721. <select name=\"${1}\" id=\"${2:$1}\" class=\"${3}>\n\
  722. ${4}\n\
  723. </select>\n\
  724. snippet select+\n\
  725. <select name=\"${1}\" id=\"${2:$1}\">\n\
  726. <option value=\"${3}\">${4:$3}</option>\n\
  727. opt+${5}\n\
  728. </select>\n\
  729. snippet small\n\
  730. <small>${1}</small>\n\
  731. snippet source\n\
  732. <source src=\"${1}\" type=\"${2}\" media=\"${3}\" />\n\
  733. snippet span\n\
  734. <span>${1}</span>\n\
  735. snippet strong\n\
  736. <strong>${1}</strong>\n\
  737. snippet style\n\
  738. <style type=\"text/css\" media=\"${1:all}\">\n\
  739. ${2}\n\
  740. </style>\n\
  741. snippet sub\n\
  742. <sub>${1}</sub>\n\
  743. snippet summary\n\
  744. <summary>\n\
  745. ${1}\n\
  746. </summary>\n\
  747. snippet sup\n\
  748. <sup>${1}</sup>\n\
  749. snippet table\n\
  750. <table border=\"${1:0}\">\n\
  751. ${2}\n\
  752. </table>\n\
  753. snippet table.\n\
  754. <table class=\"${1}\" border=\"${2:0}\">\n\
  755. ${3}\n\
  756. </table>\n\
  757. snippet table#\n\
  758. <table id=\"${1}\" border=\"${2:0}\">\n\
  759. ${3}\n\
  760. </table>\n\
  761. snippet tbody\n\
  762. <tbody>\n\
  763. ${1}\n\
  764. </tbody>\n\
  765. snippet td\n\
  766. <td>${1}</td>\n\
  767. snippet td.\n\
  768. <td class=\"${1}\">${2}</td>\n\
  769. snippet td#\n\
  770. <td id=\"${1}\">${2}</td>\n\
  771. snippet td+\n\
  772. <td>${1}</td>\n\
  773. td+${2}\n\
  774. snippet textarea\n\
  775. <textarea name=\"${1}\" id=${2:$1} rows=\"${3:8}\" cols=\"${4:40}\">${5}</textarea>${6}\n\
  776. snippet tfoot\n\
  777. <tfoot>\n\
  778. ${1}\n\
  779. </tfoot>\n\
  780. snippet th\n\
  781. <th>${1}</th>\n\
  782. snippet th.\n\
  783. <th class=\"${1}\">${2}</th>\n\
  784. snippet th#\n\
  785. <th id=\"${1}\">${2}</th>\n\
  786. snippet th+\n\
  787. <th>${1}</th>\n\
  788. th+${2}\n\
  789. snippet thead\n\
  790. <thead>\n\
  791. ${1}\n\
  792. </thead>\n\
  793. snippet time\n\
  794. <time datetime=\"${1}\" pubdate=\"${2:$1}>${3:$1}</time>\n\
  795. snippet title\n\
  796. <title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
  797. snippet tr\n\
  798. <tr>\n\
  799. ${1}\n\
  800. </tr>\n\
  801. snippet tr+\n\
  802. <tr>\n\
  803. <td>${1}</td>\n\
  804. td+${2}\n\
  805. </tr>\n\
  806. snippet track\n\
  807. <track src=\"${1}\" srclang=\"${2}\" label=\"${3}\" default=\"${4:default}>${5}</track>${6}\n\
  808. snippet ul\n\
  809. <ul>\n\
  810. ${1}\n\
  811. </ul>\n\
  812. snippet ul.\n\
  813. <ul class=\"${1}\">\n\
  814. ${2}\n\
  815. </ul>\n\
  816. snippet ul#\n\
  817. <ul id=\"${1}\">\n\
  818. ${2}\n\
  819. </ul>\n\
  820. snippet ul+\n\
  821. <ul>\n\
  822. <li>${1}</li>\n\
  823. li+${2}\n\
  824. </ul>\n\
  825. snippet var\n\
  826. <var>${1}</var>\n\
  827. snippet video\n\
  828. <video src=\"${1} height=\"${2}\" width=\"${3}\" preload=\"${5:none}\" autoplay=\"${6:autoplay}>${7}</video>${8}\n\
  829. snippet wbr\n\
  830. <wbr />${1}\n\
  831. ";
  832. exports.scope = "html";
  833. });