overview:
- Adds syntax highlighting to code blocks; see syntax highlighting.
Note
See Configuration to manage plugins.
Options
options:
theme: bundled Shikiji themes. Default:{ light: "github-light", dark: "github-dark" }keepBackground:trueuses Shikiji theme background;falseuses Quartz background. Default:falseclipboard: adds copy-to-clipboard button. Default:truetokenClassification: adds semantic token classification CSS classes. Default:true- colors: override in
quartz/styles/syntax.scss
API
api:
- category: Transformer
- function:
ExternalPlugin.SyntaxHighlighting() - source:
quartz-community/syntax-highlighting - install:
npx quartz plugin add github:quartz-community/syntax-highlighting