site/docs/plugins/SyntaxHighlighting.md
2024-04-05 02:03:11 +02:00

1 KiB

title tags
SyntaxHighlighting
plugin/transformer

This plugin is used to add syntax highlighting to code blocks in Quartz. See syntax highlighting for more information.

Note

For information on how to add, remove or configure plugins, see the configuration#Plugins page.

This plugin accepts the following configuration options:

  • theme: a separate id of one of the themes bundled with Shikiji. One for light mode and one for dark mode. Defaults to theme: { light: "github-light", dark: "github-dark" }.
  • keepBackground: If set to true, the background of the Shikiji theme will be used. With false (default) the Quartz theme color for background will be used instead.

In addition, you can further override the colours in the quartz/styles/syntax.scss file.

API