Skip to content

Commit 146fc28

Browse files
committed
Added C64 theme
1 parent 500b660 commit 146fc28

File tree

3 files changed

+39
-12
lines changed

3 files changed

+39
-12
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ echo $highlighter->parse();
4545
* obsidian
4646
* far
4747
* vs2015
48+
* c64
4849

4950
### Customization
5051
```php

src/Themes/Theme.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/Traits/SetOptions.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
trait 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

0 commit comments

Comments
 (0)