Skip to content

Commit 557317e

Browse files
authored
Highlighting for diff syntax (#213)
2 parents aa5cbd7 + 58fb089 commit 557317e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dev/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ const config = {
176176
prism: {
177177
theme: themes.vsLight,
178178
darkTheme: themes.vsDark,
179+
additionalLanguages: ['diff'],
179180
},
180181
mermaid: {
181182
theme: {

dev/src/css/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,14 @@ kol-link-button {
135135
.used-by-gallery ul li {
136136
width: 15rem;
137137
}
138+
139+
/* Highlighting for the diff code blocks */
140+
.token.inserted-sign {
141+
color: #00cc00;
142+
background-color: #e6ffe6;
143+
}
144+
145+
.token.deleted-sign {
146+
color: #cc0000;
147+
background-color: #ffe6e6;
148+
}

0 commit comments

Comments
 (0)