mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
Add syntax highlighting to codeblock
This commit is contained in:
1 parent
4b0a33174d
commit
7ee9c60e38
1 file changed
+20
@@ -294,3 +294,23 @@ body {
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Render codeblock with options for syntax highlighting
|
||||||
|
* https://user-images.githubusercontent.com/6792749/152066701-21420461-710b-4fae-a80a-89ef90a0b18f.png
|
||||||
|
*/
|
||||||
|
.codeblock {
|
||||||
|
background-color: black;
|
||||||
|
padding: 8px;
|
||||||
|
line-height: 18px;
|
||||||
|
font-family: Courier;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.codeblock .highlight {
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
.codeblock .copy-button {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 8px;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user