You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to have code blocks in a presentation look like the code execution output in this screen grab, white font on black background:
I used the following theme override for the code execution output:
execution_output:
colors:
foreground: white
background: black
I have not figured out how to specify the font and background colors for code block snippets though. I can influence the colors by using the theme_name key in a theme override, for example, or by not specifying a code language after the starting three backticks (```) delimiter before a code block:
```
docker build --tag lb-vale .
```
...or by specifying that (only) line 0 be highlighted:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to have code blocks in a presentation look like the code execution output in this screen grab, white font on black background:
I used the following theme override for the code execution output:
I have not figured out how to specify the font and background colors for code block snippets though. I can influence the colors by using the
theme_namekey in a theme override, for example, or by not specifying a code language after the starting three backticks (```) delimiter before a code block:...or by specifying that (only) line 0 be highlighted:
None of these achieve what I want though: being able to specify the font and background colors for code blocks (and turn off syntax highlighting).
Poking around, it does not seem like that
codetheme override keys support this. Fromclean.rs:Thanks in advance for any help or guidance.
Beta Was this translation helpful? Give feedback.
All reactions