Functional syntax highlighting for rust
This commit is contained in:
parent
731d7aa19c
commit
19e06488c4
7 changed files with 299 additions and 5 deletions
|
@ -11,7 +11,6 @@ code {
|
|||
/* Styling for fenced code blocks */
|
||||
pre > code {
|
||||
display: block;
|
||||
white-space: pre-wrap;
|
||||
padding: 1rem;
|
||||
border-radius: 0.55rem / 0.5rem;
|
||||
word-wrap: normal;
|
||||
|
|
|
@ -75,7 +75,7 @@ blockquote {
|
|||
background-color: var(--bg-1);
|
||||
}
|
||||
|
||||
/* Colorization for code blocks */
|
||||
/* Colorization for idris code blocks */
|
||||
code {
|
||||
color: var(--code-fg-0);
|
||||
background-color: var(--code-bg-0);
|
||||
|
@ -102,3 +102,35 @@ code {
|
|||
.hl-data {
|
||||
color: var(--code-red);
|
||||
}
|
||||
|
||||
/* Colorization for pygments code blocks */
|
||||
.hl-kd, .hl-k, .hl-kc, .hl-bp {
|
||||
color: var(--code-green);
|
||||
}
|
||||
.hl-n, .hl-nn {
|
||||
color: var(--code-violet);
|
||||
}
|
||||
.hl-s, .hl-se {
|
||||
color: var(--code-cyan);
|
||||
}
|
||||
.hl-nf, .hl-fm {
|
||||
color: var(--code-blue);
|
||||
}
|
||||
.hl-c1, .hl-cm {
|
||||
color: var(--code-dim-0);
|
||||
}
|
||||
.hl-mf, .hl-mi {
|
||||
color: var(--code-magenta);
|
||||
}
|
||||
.hl-kt, .hl-nb, .hl-nc {
|
||||
color: var(--code-orange);
|
||||
}
|
||||
.hl-cp {
|
||||
color: var(--code-red);
|
||||
}
|
||||
.hl-se {
|
||||
font-style: italic;
|
||||
}
|
||||
.hl-fm, .hl-k, .hl-o, .hl-kp {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,9 @@ body, .post {
|
|||
align-items: center;
|
||||
gap: var(--box-gap);
|
||||
}
|
||||
.post {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Style the site header */
|
||||
.site-header {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue