Skip to content

Commit 3df29af

Browse files
authored
styles: add proper diff styling to rrt (fix #603) (#1064)
This will **at the very least** enable proper styling of `diff` files: Before: ![image](https://github.com/user-attachments/assets/a87a2130-7fa9-4229-a164-d6b5b74cbb79) After: ![image](https://github.com/user-attachments/assets/3e48679a-fcb9-46d3-be61-bd3cb74f2a91) Also added GenericStrong and GenericEmph tokens since they seem to be universal (but were missing). The styling has been kept true to the rrt theme. Fixes #603
1 parent 9077658 commit 3df29af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

styles/rrt.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<entry type="LiteralNumber" style="#ff6600"/>
1111
<entry type="Comment" style="#00ff00"/>
1212
<entry type="CommentPreproc" style="#e5e5e5"/>
13+
<entry type="GenericDeleted" style="#f00"/>
14+
<entry type="GenericEmph" style="italic"/>
15+
<entry type="GenericHeading" style="bold #ff0"/>
16+
<entry type="GenericInserted" style="#0f0"/>
17+
<entry type="GenericStrong" style="bold"/>
18+
<entry type="GenericSubheading" style="bold #87ceeb"/>
1319
</style>

0 commit comments

Comments
 (0)