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 |
|
border-color |
Color |
|
border-radius |
Measurement |
|
border-style |
Border style |
|
border-width |
Measurement | Measurement[] |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-size |
Font size |
|
font-style |
Font style |
|
Number |
|
|
line-height |
Number |
|
padding |
Measurement | Measurement[] |
|
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 |
|
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 |
|