HTML auto-completion: Additions to HTML lang and auto-complete (fixes #222, closes #336)

HTML auto-complete
- add missing html elements and global events/attributes
- remove some deprecated elements, keeping popular ones
- remove duplicates

HTML lang
- add missing html elements (including deprecated ones) and global events/attributes to langs.model.xml
- remove duplicates

Use JavaScript highlight for JSON, because they have the same syntax.
This commit is contained in:
Ricardo 2015-06-25 20:27:50 -03:00 committed by Damien GERARD
parent c329442ed7
commit a9ed6b436b
2 changed files with 55 additions and 33 deletions

View File

@ -59,6 +59,7 @@
<KeyWord name="bdo" />
<KeyWord name="behind" />
<KeyWord name="below" />
<KeyWord name="bgsound" />
<KeyWord name="bidi-override" />
<KeyWord name="black" />
<KeyWord name="blink" />
@ -97,8 +98,9 @@
<KeyWord name="canvas" />
<KeyWord name="capitalize" />
<KeyWord name="caption" />
<KeyWord name="caption" />
<KeyWord name="caption-side" />
<KeyWord name="cellpadding" />
<KeyWord name="cellspacing" />
<KeyWord name="center" />
<KeyWord name="center-left" />
<KeyWord name="center-right" />
@ -107,14 +109,12 @@
<KeyWord name="checked" />
<KeyWord name="circle" />
<KeyWord name="cite" />
<KeyWord name="cite" />
<KeyWord name="cjk-ideographic" />
<KeyWord name="class" />
<KeyWord name="clear" />
<KeyWord name="clip" />
<KeyWord name="close-quote" />
<KeyWord name="code" />
<KeyWord name="code" />
<KeyWord name="col" />
<KeyWord name="colgroup" />
<KeyWord name="collapse" />
@ -125,7 +125,6 @@
<KeyWord name="compact" />
<KeyWord name="condensed" />
<KeyWord name="content" />
<KeyWord name="content" />
<KeyWord name="contenteditable" />
<KeyWord name="contextmenu" />
<KeyWord name="continuous" />
@ -152,9 +151,9 @@
<KeyWord name="del" />
<KeyWord name="details" />
<KeyWord name="dfn" />
<KeyWord name="dialog" />
<KeyWord name="digits" />
<KeyWord name="dir" />
<KeyWord name="dir" />
<KeyWord name="direction" />
<KeyWord name="disabled" />
<KeyWord name="disc" />
@ -165,10 +164,9 @@
<KeyWord name="dropzone" />
<KeyWord name="dt" />
<KeyWord name="e-resize" />
<KeyWord name="element" />
<KeyWord name="elevation" />
<KeyWord name="em" />
<KeyWord name="em" />
<KeyWord name="embed" />
<KeyWord name="embed" />
<KeyWord name="empty-cells" />
<KeyWord name="enctype" />
@ -196,12 +194,13 @@
<KeyWord name="footer" />
<KeyWord name="for" />
<KeyWord name="form" />
<KeyWord name="form" />
<KeyWord name="formaction" />
<KeyWord name="formenctype" />
<KeyWord name="formmethod" />
<KeyWord name="formnovalidate" />
<KeyWord name="formtarget" />
<KeyWord name="frame" />
<KeyWord name="frameset" />
<KeyWord name="fuchsia" />
<KeyWord name="georgian" />
<KeyWord name="grad" />
@ -218,14 +217,11 @@
<KeyWord name="headers" />
<KeyWord name="hebrew" />
<KeyWord name="height" />
<KeyWord name="height" />
<KeyWord name="help" />
<KeyWord name="hgroup" />
<KeyWord name="hidden" />
<KeyWord name="hidden" />
<KeyWord name="hide" />
<KeyWord name="high" />
<KeyWord name="high" />
<KeyWord name="higher" />
<KeyWord name="hiragana" />
<KeyWord name="hiragana-iroha" />
@ -237,7 +233,6 @@
<KeyWord name="hz" />
<KeyWord name="i" />
<KeyWord name="icon" />
<KeyWord name="icon" />
<KeyWord name="id" />
<KeyWord name="iframe" />
<KeyWord name="img" />
@ -258,7 +253,6 @@
<KeyWord name="khz" />
<KeyWord name="kind" />
<KeyWord name="label" />
<KeyWord name="label" />
<KeyWord name="landscape" />
<KeyWord name="lang" />
<KeyWord name="left" />
@ -282,7 +276,6 @@
<KeyWord name="loop" />
<KeyWord name="loud" />
<KeyWord name="low" />
<KeyWord name="low" />
<KeyWord name="lower" />
<KeyWord name="lower-alpha" />
<KeyWord name="lower-greek" />
@ -302,6 +295,7 @@
<KeyWord name="marker-offset" />
<KeyWord name="marks" />
<KeyWord name="maroon" />
<KeyWord name="marquee" />
<KeyWord name="max" />
<KeyWord name="max-height" />
<KeyWord name="max-width" />
@ -309,7 +303,7 @@
<KeyWord name="media" />
<KeyWord name="medium" />
<KeyWord name="menu" />
<KeyWord name="menu" />
<KeyWord name="menuitem" />
<KeyWord name="message-box" />
<KeyWord name="meta" />
<KeyWord name="meter" />
@ -321,6 +315,7 @@
<KeyWord name="mix" />
<KeyWord name="move" />
<KeyWord name="ms" />
<KeyWord name="multicol" />
<KeyWord name="multiple" />
<KeyWord name="muted" />
<KeyWord name="n-resize" />
@ -332,6 +327,8 @@
<KeyWord name="no-close-quote" />
<KeyWord name="no-open-quote" />
<KeyWord name="no-repeat" />
<KeyWord name="nobr" />
<KeyWord name="noframes" />
<KeyWord name="none" />
<KeyWord name="normal" />
<KeyWord name="noscript" />
@ -343,19 +340,25 @@
<KeyWord name="ol" />
<KeyWord name="olive" />
<KeyWord name="onabort" />
<KeyWord name="onautocomplete" />
<KeyWord name="onautocompleteerror" />
<KeyWord name="onbeforeprint" />
<KeyWord name="onbeforeunload" />
<KeyWord name="onblur" />
<KeyWord name="oncancel" />
<KeyWord name="oncanplay" />
<KeyWord name="oncanplaythrough" />
<KeyWord name="once" />
<KeyWord name="onchange" />
<KeyWord name="onclick" />
<KeyWord name="onclose" />
<KeyWord name="oncontextmenu" />
<KeyWord name="oncuechange" />
<KeyWord name="ondblclick" />
<KeyWord name="ondrag" />
<KeyWord name="ondragend" />
<KeyWord name="ondragenter" />
<KeyWord name="ondragexit" />
<KeyWord name="ondragleave" />
<KeyWord name="ondragover" />
<KeyWord name="ondragstart" />
@ -365,9 +368,7 @@
<KeyWord name="onended" />
<KeyWord name="onerror" />
<KeyWord name="onfocus" />
<KeyWord name="onformchange" />
<KeyWord name="onforminput" />
<KeyWord name="onhaschange" />
<KeyWord name="onhashchange" />
<KeyWord name="oninput" />
<KeyWord name="oninvalid" />
<KeyWord name="onkeydown" />
@ -379,6 +380,8 @@
<KeyWord name="onloadstart" />
<KeyWord name="onmessage" />
<KeyWord name="onmousedown" />
<KeyWord name="onmouseenter" />
<KeyWord name="onmouseleave" />
<KeyWord name="onmousemove" />
<KeyWord name="onmouseout" />
<KeyWord name="onmouseover" />
@ -391,21 +394,35 @@
<KeyWord name="onpause" />
<KeyWord name="onplay" />
<KeyWord name="onplaying" />
<KeyWord name="onpointercancel" />
<KeyWord name="onpointerdown" />
<KeyWord name="onpointerenter" />
<KeyWord name="onpointerleave" />
<KeyWord name="onpointerlockchange" />
<KeyWord name="onpointerlockerror" />
<KeyWord name="onpointermove" />
<KeyWord name="onpointerout" />
<KeyWord name="onpointerover" />
<KeyWord name="onpointerup" />
<KeyWord name="onpopstate" />
<KeyWord name="onprogress" />
<KeyWord name="onratechange" />
<KeyWord name="onreadystatechange" />
<KeyWord name="onredo" />
<KeyWord name="onreset" />
<KeyWord name="onresize" />
<KeyWord name="onscroll" />
<KeyWord name="onseeked" />
<KeyWord name="onseeking" />
<KeyWord name="onselect" />
<KeyWord name="onshow" />
<KeyWord name="onsort" />
<KeyWord name="onstalled" />
<KeyWord name="onstorage" />
<KeyWord name="onsubmit" />
<KeyWord name="onsuspend" />
<KeyWord name="ontimeupdate" />
<KeyWord name="ontoggle" />
<KeyWord name="onundo" />
<KeyWord name="onunload" />
<KeyWord name="onvolumechange" />
@ -439,6 +456,7 @@
<KeyWord name="pause" />
<KeyWord name="pause-after" />
<KeyWord name="pause-before" />
<KeyWord name="picture" />
<KeyWord name="pitch" />
<KeyWord name="pitch-range" />
<KeyWord name="placeholder" />
@ -448,7 +466,6 @@
<KeyWord name="position" />
<KeyWord name="poster" />
<KeyWord name="pre" />
<KeyWord name="pre" />
<KeyWord name="preload" />
<KeyWord name="progress" />
<KeyWord name="pt" />
@ -476,6 +493,7 @@
<KeyWord name="rowspan" />
<KeyWord name="rp" />
<KeyWord name="rt" />
<KeyWord name="rtc" />
<KeyWord name="rtl" />
<KeyWord name="ruby" />
<KeyWord name="run-in" />
@ -495,6 +513,7 @@
<KeyWord name="semi-condensed" />
<KeyWord name="semi-expanded" />
<KeyWord name="separate" />
<KeyWord name="shadow" />
<KeyWord name="shape" />
<KeyWord name="show" />
<KeyWord name="silent" />
@ -509,7 +528,6 @@
<KeyWord name="soft" />
<KeyWord name="source" />
<KeyWord name="span" />
<KeyWord name="span" />
<KeyWord name="speak" />
<KeyWord name="speak-header" />
<KeyWord name="speak-numeral" />
@ -526,14 +544,17 @@
<KeyWord name="status-bar" />
<KeyWord name="step" />
<KeyWord name="stress" />
<KeyWord name="strike" />
<KeyWord name="strong" />
<KeyWord name="style" />
<KeyWord name="sub" />
<KeyWord name="summary" />
<KeyWord name="sup" />
<KeyWord name="super" />
<KeyWord name="svg" />
<KeyWord name="svg:svg" />
<KeyWord name="sw-resize" />
<KeyWord name="table" />
<KeyWord name="tabindex" />
<KeyWord name="table" />
<KeyWord name="table-caption" />
<KeyWord name="table-cell" />
@ -548,6 +569,7 @@
<KeyWord name="tbody" />
<KeyWord name="td" />
<KeyWord name="teal" />
<KeyWord name="template" />
<KeyWord name="text" />
<KeyWord name="text-align" />
<KeyWord name="text-bottom" />
@ -595,7 +617,6 @@
<KeyWord name="wider" />
<KeyWord name="widows" />
<KeyWord name="width" />
<KeyWord name="width" />
<KeyWord name="word-spacing" />
<KeyWord name="wrap" />
<KeyWord name="x-fast" />
@ -604,6 +625,7 @@
<KeyWord name="x-low" />
<KeyWord name="x-slow" />
<KeyWord name="x-soft" />
<KeyWord name="xml:base" />
<KeyWord name="xml:lang" />
<KeyWord name="xmlns" />
<KeyWord name="yellow" />

View File

@ -93,8 +93,8 @@
<Language name="haskell" ext="hs lhs las" commentLine="--">
<Keywords name="instre1">as case class data default deriving do else hiding if import in infix infixl infixr instance let module newtype of proc qualified rec then type where _</Keywords>
</Language>
<Language name="html" ext="html htm shtml shtm xhtml hta" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
<Keywords name="instre1">!doctype a abbr accept accept-charset accesskey acronym action address align alink alt applet archive area article aside audio axis b background base basefont bdo bgcolor big blockquote body border br button canvas caption cellpadding cellspacing center char charoff charset checkbox checked cite class classid clear code codebase codetype col colgroup color cols colspan command compact content contenteditable contextmenu coords data datafld dataformatas datalist datapagesize datasrc datetime dd declare defer del details dfn dir disabled div dl draggable dropzone dt em embed enctype event face fieldset figcaption figure file font footer for form frame frameborder frameset h1 h2 h3 h4 h5 h6 head header height hgroup hidden hr href hreflang hspace html http-equiv i id iframe image img input ins isindex ismap kbd keygen label lang language leftmargin legend li link longdesc main map marginheight marginwidth mark marquee maxlength media menu meta meter method multiple name nav noframes nohref noresize noscript noshade nowrap object ol onabort onafterprint onbeforeonload onbeforeprint onblur oncanplay oncanplaythrough onchange onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange ondurationchange onemptied onended onerror onfocus onformchange onforminput onhaschange oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmessage onmousedown onmousemove onmouseout onmouseover onmouseup onmousewheel onoffline ononline onpagehide onpageshow onpause onplay onplaying onpopstate onprogress onratechange onreadystatechange onredo onreset onresize onscroll onseeked onseeking onselect onselect onstalled onstorage onsubmit onsubmit onsuspend ontimeupdate onundo onunload onunload onvolumechange onwaiting optgroup option output p param password placeholder pre profile progress prompt public q radio readonly rel reset rev rows rowspan rp rt ruby rules s samp scheme scope script section select selected shape size small source span spellcheck src standby start strike strong style sub submit summary sup tabindex table target tbody td text textarea tfoot th thead time title topmargin tr tt type u ul usemap valign value valuetype var version video vlink vspace wbr width xml xmlns</Keywords>
<Language name="html" ext="html htm shtml shtm xhtml xht hta" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
<Keywords name="instre1">!DOCTYPE a abbr accept accept-charset accesskey acronym action address align alink alt applet archive area article aside audio axis b background base basefont bdi bdo bgsound bgcolor big blink blockquote body border br button canvas caption cellpadding cellspacing center char charoff charset checkbox checked cite class classid clear code codebase codetype col colgroup color cols colspan command compact content contenteditable contextmenu coords data datafld dataformatas datalist datapagesize datasrc datetime dd declare defer del details dfn dialog dir disabled div dl draggable dropzone dt element em embed enctype event face fieldset figcaption figure file font footer for form frame frameborder frameset h1 h2 h3 h4 h5 h6 head header height hgroup hidden hr href hreflang hspace html http-equiv i id iframe image img input ins isindex ismap kbd keygen label lang language leftmargin legend li link listing longdesc main map marginheight marginwidth mark marquee maxlength media menu menuitem meta meter multicol method multiple name nav nobr noembed noframes nohref noresize noscript noshade nowrap object ol onabort onautocomplete onautocompleteerror onafterprint onbeforeonload onbeforeprint onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncuechange ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onhashchange oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmessage onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel onoffline ononline onpagehide onpageshow onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointerlockchange onpointerlockerror onpointermove onpointerout onpointerover onpointerup onpopstate onprogress onratechange onreadystatechange onredo onreset onresize onscroll onseeked onseeking onselect onshow onsort onselect onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle onundo onunload onvolumechange onwaiting optgroup option output p param picture plaintext password placeholder pre profile progress prompt public q radio readonly rel reset rev rows rowspan rp rt rtc ruby rules s samp scheme scope script section select shadow selected shape size small source spacer span spellcheck src standby start strike strong style sub submit summary sup svg svg:svg tabindex table target tbody td template text textarea tfoot th thead time title topmargin tr track tt type u ul usemap valign value valuetype var version video vlink vspace wbr xmp width xml xmlns</Keywords>
</Language>
<Language name="ini" ext="ini inf reg url" commentLine=";">
</Language>
@ -110,7 +110,7 @@
<Keywords name="instre1">instanceof assert if else switch case default break goto return for while do continue new throw throws try catch finally this super extends implements import true false null</Keywords>
<Keywords name="type1">package transient strictfp void char short int long double float const static volatile byte boolean class interface native private protected public final abstract synchronized enum</Keywords>
</Language>
<Language name="javascript" ext="js jsm" commentLine="//" commentStart="/*" commentEnd="*/">
<Language name="javascript" ext="js jsm json" commentLine="//" commentStart="/*" commentEnd="*/">
<Keywords name="instre1">abstract boolean break byte case catch char class const continue debugger default delete do double else enum export extends final finally float for from function goto if implements import in instanceof int interface let long native new of package private protected public return short static super switch synchronized this throw throws transient try typeof var void volatile while with true false prototype</Keywords>
</Language>
<Language name="jsp" ext="jsp" commentLine="//" commentStart="/*" commentEnd="*/"/>