Skip to content

Commit ca77898

Browse files
authored
fix: html to match styleguide (#45)
Also includes fixes that I missed for XML. HTML and XML should be more consistent with each-other now
1 parent 1f194ff commit ca77898

File tree

5 files changed

+230
-150
lines changed

5 files changed

+230
-150
lines changed

templates/editor.tera

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -110,37 +110,53 @@ whiskers:
110110
<WordsStyle name="BYTE CHARACTER" styleID="23" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
111111
</LexerType>
112112
<LexerType name="xml" desc="XML" ext="xaml svg xul vcxproj csproj vbproj fsproj lsxtproj shproj xproj ccproj jsproj sqlproj dbproj msbuildproj props">
113-
<WordsStyle name="XMLSTART" styleID="12" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
114-
<WordsStyle name="XMLEND" styleID="13" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
115-
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
116-
<WordsStyle name="COMMENT" styleID="9" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
117-
<WordsStyle name="NUMBER" styleID="5" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
118-
<WordsStyle name="DOUBLESTRING" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
119-
<WordsStyle name="SINGLESTRING" styleID="7" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
120-
<WordsStyle name="TAG" styleID="1" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
121-
<WordsStyle name="TAGEND" styleID="11" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
122-
<WordsStyle name="TAGUNKNOWN" styleID="2" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
123-
<WordsStyle name="ATTRIBUTE" styleID="3" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
124-
<WordsStyle name="ATTRIBUTEUNKNOWN" styleID="4" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
125-
<WordsStyle name="SGMLDEFAULT" styleID="21" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
126-
<WordsStyle name="CDATA" styleID="17" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
127-
<WordsStyle name="ENTITY" styleID="10" fgColor="{{ text.hex }}" bgColor="{{ surface1.hex }}" fontName="" fontStyle="2" fontSize=""></WordsStyle>
113+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="0" fontName="" fontStyle="0" fontSize="" />
114+
<WordsStyle name="XMLSTART" styleID="12" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
115+
<WordsStyle name="XMLEND" styleID="13" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
116+
<WordsStyle name="COMMENT" styleID="9" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
117+
<WordsStyle name="NUMBER" styleID="5" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
118+
<WordsStyle name="DOUBLESTRING" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
119+
<WordsStyle name="SINGLESTRING" styleID="7" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
120+
<WordsStyle name="TAG" styleID="1" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
121+
<WordsStyle name="TAGEND" styleID="11" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
122+
<WordsStyle name="TAGUNKNOWN" styleID="2" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
123+
<WordsStyle name="ATTRIBUTE" styleID="3" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
124+
<WordsStyle name="ATTRIBUTEUNKNOWN" styleID="4" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
125+
<WordsStyle name="SGML DEFAULT" styleID="21" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
126+
<WordsStyle name="CDATA" styleID="17" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
127+
<WordsStyle name="ENTITY" styleID="10" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize=""></WordsStyle>
128+
<WordsStyle name="USER ATTRIBUTES 1" styleID="192" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle1" />
129+
<WordsStyle name="USER ATTRIBUTES 2" styleID="193" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle2" />
130+
<WordsStyle name="USER ATTRIBUTES 3" styleID="194" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle3" />
131+
<WordsStyle name="USER ATTRIBUTES 4" styleID="195" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle4" />
132+
<WordsStyle name="USER ATTRIBUTES 5" styleID="196" fgColor="{{ sky.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle5" />
133+
<WordsStyle name="USER ATTRIBUTES 6" styleID="197" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle6" />
134+
<WordsStyle name="USER ATTRIBUTES 7" styleID="198" fgColor="{{ pink.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle7" />
135+
<WordsStyle name="USER ATTRIBUTES 8" styleID="199" fgColor="{{ flamingo.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="substyle8" />
128136
</LexerType>
129137
<LexerType name="html" desc="HTML" ext="">
130-
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
131-
<WordsStyle name="COMMENT" styleID="9" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
132-
<WordsStyle name="NUMBER" styleID="5" fgColor="B5CEA8" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
133-
<WordsStyle name="DOUBLESTRING" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
134-
<WordsStyle name="SINGLESTRING" styleID="7" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
135-
<WordsStyle name="TAG" styleID="1" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
136-
<WordsStyle name="TAGEND" styleID="11" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
137-
<WordsStyle name="TAGUNKNOWN" styleID="2" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
138-
<WordsStyle name="ATTRIBUTE" styleID="3" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
139-
<WordsStyle name="ATTRIBUTEUNKNOWN" styleID="4" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
140-
<WordsStyle name="SGMLDEFAULT" styleID="21" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
141-
<WordsStyle name="CDATA" styleID="17" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
142-
<WordsStyle name="VALUE" styleID="19" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
143-
<WordsStyle name="ENTITY" styleID="10" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
138+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="0" fontName="" fontStyle="0" fontSize="" />
139+
<WordsStyle name="COMMENT" styleID="9" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
140+
<WordsStyle name="NUMBER" styleID="5" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
141+
<WordsStyle name="DOUBLE STRING" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
142+
<WordsStyle name="SINGLE STRING" styleID="7" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
143+
<WordsStyle name="TAG" styleID="1" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" />
144+
<WordsStyle name="TAG END" styleID="11" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
145+
<WordsStyle name="TAG UNKNOWN" styleID="2" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
146+
<WordsStyle name="ATTRIBUTE" styleID="3" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
147+
<WordsStyle name="ATTRIBUTE UNKNOWN" styleID="4" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
148+
<WordsStyle name="SGML DEFAULT" styleID="21" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
149+
<WordsStyle name="CDATA" styleID="17" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
150+
<WordsStyle name="VALUE" styleID="19" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
151+
<WordsStyle name="ENTITY" styleID="10" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
152+
<WordsStyle name="USER TAGS1" styleID="192" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle1" />
153+
<WordsStyle name="USER TAGS2" styleID="193" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle2" />
154+
<WordsStyle name="USER TAGS3" styleID="194" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle3" />
155+
<WordsStyle name="USER TAGS4" styleID="195" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle4" />
156+
<WordsStyle name="USER ATTRIBUTES1" styleID="196" fgColor="{{ sky.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle5">download</WordsStyle>
157+
<WordsStyle name="USER ATTRIBUTES2" styleID="197" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle6" />
158+
<WordsStyle name="USER ATTRIBUTES3" styleID="198" fgColor="{{ pink.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle7" />
159+
<WordsStyle name="USER ATTRIBUTES4" styleID="199" fgColor="{{ flamingo.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="substyle8" />
144160
</LexerType>
145161
<LexerType name="md" desc="MD" ext="">
146162
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
@@ -207,7 +223,7 @@ whiskers:
207223
</LexerType>
208224
<LexerType name="cs" desc="C#" ext="vala">
209225
<WordsStyle name="DEFAULT" styleID="11" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="0" fontName="" fontStyle="0" fontSize="" />
210-
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="{{ sky.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
226+
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="{{ sky.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
211227
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" keywordClass="instre1" />
212228
<WordsStyle name="TYPE WORD" styleID="16" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" keywordClass="type1" />
213229
<WordsStyle name="NUMBER" styleID="4" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />

0 commit comments

Comments
 (0)