File tree Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ echo $highlighter->parse();
4545* obsidian
4646* far
4747* vs2015
48+ * c64
4849
4950### Customization
5051``` php
Original file line number Diff line number Diff line change @@ -183,4 +183,30 @@ private function vs2015Theme() : void
183183 self ::setPHPKeywordColor ('#569CD6; font-weight: bold; ' );
184184 self ::setPHPStringColor ('#D69D85; ' );
185185 }
186+
187+ private function c64Theme () : void
188+ {
189+ // Default
190+ self ::setDefaultColor ('#70A4B2; ' );
191+ self ::setBackgroundColor ('#352879 ' );
192+ self ::setCommentColor ('#6C5EB5; ' );
193+ self ::setKeywordColor ('#FFFFFF; ' );
194+ self ::setVariableColor ('#70A4B2 ' );
195+ self ::setStringColor ('#B8C76F; ' );
196+ self ::setHtmlColor ('#70A4B2; ' );
197+ self ::setFlagColor ('#588D43; ' );
198+
199+ // XML
200+ self ::setXMLTagColor ('#70A4B2; font-weight; ' );
201+ self ::setXMLAttrNameColor ('#9A6759; ' );
202+ self ::setXMLAttrValueColor ('#9AD284; ' );
203+ self ::setXMLInfoColor ('#6C6C6C; ' );
204+
205+ // PHP
206+ self ::setPHPDefaultColor ('#FFFFFF; ' );
207+ self ::setPHPCommentColor ('#9AD284; ' );
208+ self ::setPHPHtmlColor ('#70A4B2; ' );
209+ self ::setPHPKeywordColor ('#70A4B2; font-weight: bold; ' );
210+ self ::setPHPStringColor ('#B8C76F; ' );
211+ }
186212}
Original file line number Diff line number Diff line change 55trait SetOptions
66{
77
8- private static $ _defaultColor ;
8+ private static $ _defaultColor = '' ;
99
10- private static $ _backgroundColor ;
10+ private static $ _backgroundColor = '' ;
1111
12- private static $ _commentColor ;
12+ private static $ _commentColor = '' ;
1313
14- private static $ _keywordColor ;
14+ private static $ _keywordColor = '' ;
1515
16- private static $ _variableColor ;
16+ private static $ _variableColor = '' ;
1717
18- private static $ _stringColor ;
18+ private static $ _stringColor = '' ;
1919
20- private static $ _htmlColor ;
20+ private static $ _htmlColor = '' ;
2121
22- private static $ _flagColor ;
22+ private static $ _flagColor = '' ;
2323
24- private static $ _XMLTagColor ;
24+ private static $ _XMLTagColor = '' ;
2525
26- private static $ _XMLAttrNameColor ;
26+ private static $ _XMLAttrNameColor = '' ;
2727
28- private static $ _XMLAttrValueColor ;
28+ private static $ _XMLAttrValueColor = '' ;
2929
30- private static $ _XMLInfoColor ;
30+ private static $ _XMLInfoColor = '' ;
3131
3232 /**
3333 * @param string $color
You can’t perform that action at this time.
0 commit comments