Code Block Category Keys
code
The keys in the code
category control the arrangement and style of literal, listing, and source blocks as well as literal table cells.
Key | Value Type | Example |
---|---|---|
background-color |
Color |
yaml |
border-color |
Color |
yaml |
border-radius |
Measurement |
yaml |
border-style |
Border style |
yaml |
border-width |
Measurement | Measurement[] |
yaml |
font-color |
Color |
yaml |
font-family |
Font family name |
yaml |
font-size |
Number |
yaml |
font-style |
Font style |
yaml |
Number |
yaml |
|
line-height |
Number |
yaml |
padding |
Measurement | Measurement[] |
yaml |
code-highlight
The key in the code-highlight
category only applies when you use Rouge as the source highlighter.
Otherwise, the background color is controlled by the source highlighter theme.
Key | Value Type | Example |
---|---|---|
background-color |
Color |
yaml |
code-linenum
The key in the code-linenum
category only applies when you use Pygments as the source highlighter.
Otherwise, the font color of line numbers is controlled by the source highlighter theme.
Key | Value Type | Example |
---|---|---|
font-color |
Color |
yaml |