Skip to content

Commit 43133c1

Browse files
authored
Merge pull request #4 from reproducibleMATLAB/wip_syntax_highlighting
work in progress on matlab syntax highlighting
2 parents 2f2876c + 4125abc commit 43133c1

File tree

3 files changed

+392
-1
lines changed

3 files changed

+392
-1
lines changed

Diff for: content/_quarto.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ csl: nature.csl
5858
format:
5959
html:
6060
from: markdown+emoji
61-
highlight-style: a11y-dark
61+
syntax-definitions:
62+
- matlab.xml
63+
highlight-style: matlab-light.theme
6264
theme:
6365
light: simplex
6466
dark: solar

Diff for: content/matlab-light.theme

+214
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
{
2+
"text-color": null,
3+
"background-color": "#f1f3f5",
4+
"line-number-color": "#aaaaaa",
5+
"line-number-background-color": null,
6+
"text-styles": {
7+
"Normal": {
8+
"text-color": "#000000"
9+
},
10+
"Other": {
11+
"text-color": "#003B4F",
12+
"background-color": null,
13+
"bold": false,
14+
"italic": false,
15+
"underline": false
16+
},
17+
"Attribute": {
18+
"text-color": "#657422",
19+
"background-color": null,
20+
"bold": false,
21+
"italic": false,
22+
"underline": false
23+
},
24+
"SpecialString": {
25+
"text-color": "#A709F5",
26+
"background-color": null,
27+
"bold": false,
28+
"italic": false,
29+
"underline": false
30+
},
31+
"Annotation": {
32+
"text-color": "#5E5E5E",
33+
"background-color": null,
34+
"bold": false,
35+
"italic": false,
36+
"underline": false
37+
},
38+
"Function": {
39+
"text-color": "#0000FF",
40+
"background-color": null,
41+
"bold": false,
42+
"italic": false,
43+
"underline": false
44+
},
45+
"String": {
46+
"text-color": "#A709F5",
47+
"background-color": null,
48+
"bold": false,
49+
"italic": false,
50+
"underline": false
51+
},
52+
"ControlFlow": {
53+
"text-color": "#003B4F",
54+
"background-color": null,
55+
"bold": true,
56+
"italic": false,
57+
"underline": false
58+
},
59+
"Operator": {
60+
"text-color": "#5E5E5E",
61+
"background-color": null,
62+
"bold": false,
63+
"italic": false,
64+
"underline": false
65+
},
66+
"Error": {
67+
"text-color": "#AD0000",
68+
"background-color": null,
69+
"bold": false,
70+
"italic": false,
71+
"underline": false
72+
},
73+
"BaseN": {
74+
"text-color": "#AD0000",
75+
"background-color": null,
76+
"bold": false,
77+
"italic": false,
78+
"underline": false
79+
},
80+
"Alert": {
81+
"text-color": "#AD0000",
82+
"background-color": null,
83+
"bold": false,
84+
"italic": false,
85+
"underline": false
86+
},
87+
"Variable": {
88+
"text-color": "#111111",
89+
"background-color": null,
90+
"bold": false,
91+
"italic": false,
92+
"underline": false
93+
},
94+
"BuiltIn": {
95+
"text-color": null,
96+
"background-color": null,
97+
"bold": false,
98+
"italic": false,
99+
"underline": false
100+
},
101+
"Extension": {
102+
"text-color": null,
103+
"background-color": null,
104+
"bold": false,
105+
"italic": false,
106+
"underline": false
107+
},
108+
"Preprocessor": {
109+
"text-color": "#AD0000",
110+
"background-color": null,
111+
"bold": false,
112+
"italic": false,
113+
"underline": false
114+
},
115+
"Information": {
116+
"text-color": "#5E5E5E",
117+
"background-color": null,
118+
"bold": false,
119+
"italic": false,
120+
"underline": false
121+
},
122+
"VerbatimString": {
123+
"text-color": "#20794D",
124+
"background-color": null,
125+
"bold": false,
126+
"italic": false,
127+
"underline": false
128+
},
129+
"Warning": {
130+
"text-color": "#5E5E5E",
131+
"background-color": null,
132+
"bold": false,
133+
"italic": true,
134+
"underline": false
135+
},
136+
"Documentation": {
137+
"text-color": "#5E5E5E",
138+
"background-color": null,
139+
"bold": false,
140+
"italic": true,
141+
"underline": false
142+
},
143+
"Import": {
144+
"text-color": "#00769E",
145+
"background-color": null,
146+
"bold": false,
147+
"italic": false,
148+
"underline": false
149+
},
150+
"Char": {
151+
"text-color": "#20794D",
152+
"background-color": null,
153+
"bold": false,
154+
"italic": false,
155+
"underline": false
156+
},
157+
"DataType": {
158+
"text-color": "#000000",
159+
"background-color": null,
160+
"bold": false,
161+
"italic": false,
162+
"underline": false
163+
},
164+
"Float": {
165+
"text-color": "#000000",
166+
"background-color": null,
167+
"bold": false,
168+
"italic": false,
169+
"underline": false
170+
},
171+
"Comment": {
172+
"text-color": "#008013",
173+
"background-color": null,
174+
"bold": false,
175+
"italic": false,
176+
"underline": false
177+
},
178+
"CommentVar": {
179+
"text-color": "#5E5E5E",
180+
"background-color": null,
181+
"bold": false,
182+
"italic": true,
183+
"underline": false
184+
},
185+
"Constant": {
186+
"text-color": "#8f5902",
187+
"background-color": null,
188+
"bold": false,
189+
"italic": false,
190+
"underline": false
191+
},
192+
"SpecialChar": {
193+
"text-color": "#5E5E5E",
194+
"background-color": null,
195+
"bold": false,
196+
"italic": false,
197+
"underline": false
198+
},
199+
"DecVal": {
200+
"text-color": "#AD0000",
201+
"background-color": null,
202+
"bold": false,
203+
"italic": false,
204+
"underline": false
205+
},
206+
"Keyword": {
207+
"text-color": "#0000FF",
208+
"background-color": null,
209+
"bold": false,
210+
"italic": false,
211+
"underline": false
212+
}
213+
}
214+
}

0 commit comments

Comments
 (0)