Highlighting is implemented using skylighting. In addition to the built in themes available for syntax highlighting, you can also specify your own syntax highlighting by providing the path to a valid theme file (which is based upon the KDE XML syntax highlighting descriptions). We’ve additionally introduced the arrow-dark theme which is designed to provide accessible highlighting against dark backgrounds.Įxamples of the light and dark themes: Arrow (light) atom-one-dark) to by pass this automatic behavior.īy default, code is highlighted using the arrow theme, which is optimized for accessibility. Users may always opt to specify the full name (e.g. ![]() When available, Quarto will automatically select the appropriate style based upon the code chunk background color’s darkness. Highlighting themes can provide either a single highlighting definition or two definitions, one optimized for a light colored background and another optimized for a dark color background. The highlight-style option determines which theme is used. These are designed to work well with sites that include a dark and light mode.Īll of the standard Pandoc themes are also available:Īs well as an additional set of extended themes, including: These themes are “adaptive”, which means they will automatically switch between a dark and light mode based upon the theme of the website. ![]() You can specify the code highlighting style using highlight-style and specifying one of the supported themes. If you want to provide the appearance of a highlighted code block for a language not supported, just use default as the language name. Pandoc can provide syntax highlighting for over 140 different languages (see the output of quarto pandoc -list-highlight-languages for a list of all of them). Pandoc will automatically highlight syntax in fenced code blocks that are marked with a language name. Code-block-bg : true code-block-border-left : "#31BAE9"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |