html.js 21 KB

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