Upgrade syntax highlighter to 4.0 and update example to use diff syntax

This commit is contained in:
Zach Leatherman
2022-03-03 17:11:08 -06:00
parent aea9ea8cdb
commit 3eb6c6a67d
6 changed files with 46 additions and 36 deletions

View File

@@ -88,36 +88,6 @@ pre {
code {
word-break: break-all;
}
.highlight-line {
display: block;
padding: 0.125em 1em;
text-decoration: none; /* override del, ins, mark defaults */
color: inherit; /* override del, ins, mark defaults */
}
/* allow highlighting empty lines */
.highlight-line:empty:before {
content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
display: none;
}
.highlight-line-isdir {
color: #b0b0b0;
background-color: #222;
}
.highlight-line-active {
background-color: #444;
background-color: hsla(0, 0%, 27%, .8);
}
.highlight-line-add {
background-color: #45844b;
}
.highlight-line-remove {
background-color: #902f2f;
}
/* Header */
.home {