How can I change the background of a static code cell in HTML? #11232
-
DescriptionI'm using a custom format called clean-revealjs (https://github.com/grantmcdermott/quarto-revealjs-clean) which formats the code nicely but I have some static code blocks that I want to format differently
I want these static (not rendered) code blocks to be rendered with a dark background, not white, the default style for example would be also nice! How can I do this on a code-block by code-block basis? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Look at:
Note that the above is mostly for default formats. |
Beta Was this translation helpful? Give feedback.
Add a class to the block and make your CSS rule to use it.