Adding new keywords and styling to an existing language



  • I am working on a few webpages which contain a lot of metadata and schema.org vocabulairy. To make it easier, I thought I would add some new styling for these kinds of metadata. Unfortunatly I can’t get it working. What would be the right way to do this?

    <Language name=“html” ext=“html htm shtml shtm xhtml xht hta” commentLine="" commentStart="<!–" commentEnd="–>">
    <Keywords name=“instre1”>!doctype a abbr accept accept-charset accesskey acronym action address align alink alt applet archive area article aside async audio autocomplete autofocus axis b background base basefont bdi bdo bgcolor bgsound 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 formaction formenctype formmethod formnovalidate formtarget frame frameborder frameset h1 h2 h3 h4 h5 h6 head header headers 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 list listing longdesc main manifest map marginheight marginwidth mark marquee max maxlength media menu menuitem meta meter method min multicol multiple name nav nobr noembed noframes nohref noresize noscript noshade novalidate nowrap object ol onabort onafterprint onautocomplete onautocompleteerror 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 onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle onundo onunload onvolumechange onwaiting optgroup option output p param password pattern picture placeholder plaintext pre profile progress prompt public q radio readonly rel required reset rev reversed role rows rowspan rp rt rtc ruby rules s samp sandbox scheme scope scoped script seamless section select selected shadow shape size sizes small source spacer span spellcheck src srcdoc standby start step 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 width xml xmlns xmp</Keywords>
    <Keywords name=“instre2”>itemprop itemscope itemtype meta twitter fb og vocab typeof property prefix</Keywords>
    </Language>

    <LexerType name=“html” desc=“HTML” ext="">
    <WordsStyle name=“DEFAULT” styleID=“0” fgColor=“000000” bgColor=“FFFFFF” fontName="" fontStyle=“1” fontSize="" />
    <WordsStyle name=“COMMENT” styleID=“9” fgColor=“008000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“NUMBER” styleID=“5” fgColor=“FF0000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“DOUBLESTRING” styleID=“6” fgColor=“8000FF” bgColor=“FFFFFF” fontName="" fontStyle=“1” fontSize="" />
    <WordsStyle name=“SINGLESTRING” styleID=“7” fgColor=“8000FF” bgColor=“FFFFFF” fontName="" fontStyle=“1” fontSize="" />
    <WordsStyle name=“TAG” styleID=“1” fgColor=“0000FF” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“TAGEND” styleID=“11” fgColor=“0000FF” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“TAGUNKNOWN” styleID=“2” fgColor=“000000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“ATTRIBUTE” styleID=“3” fgColor=“FF0000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“ATTRIBUTEUNKNOWN” styleID=“4” fgColor=“000000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“SGMLDEFAULT” styleID=“21” fgColor=“000000” bgColor=“A6CAF0” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“CDATA” styleID=“17” fgColor=“FF8000” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“VALUE” styleID=“19” fgColor=“FF8000” bgColor=“FEFDE0” fontName="" fontStyle=“0” fontSize="" />
    <WordsStyle name=“ENTITY” styleID=“10” fgColor=“000000” bgColor=“FEFDE0” fontName="" fontStyle=“2” fontSize="" />
    <WordsStyle name=“KEYWORD” styleID=“16” fgColor=“FFFF00” bgColor=“FFFFFF” fontName="" fontStyle=“0” fontSize="" keywordClass=“instre2”/>
    </LexerType>


Log in to reply