aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-08-11 19:54:23 +0200
committerJohn MacFarlane <[email protected]>2025-09-02 17:50:47 +0200
commite0acb24528cbf409ae5723e537acb0c2ed4e2d91 (patch)
tree77bf1d4ac09a2ec049da651d32bd97a04656dd4d /doc
parent64757254ab6e1d005cf8f4ee6c491d97aed7b16f (diff)
Refactor highlighting options [API Change]
A new command line option `--syntax-highlighting` is provided; it takes the values `none`, `default`, `idiomatic`, a style name, or a path to a theme file. It replaces the `--no-highlighting`, `--highlighting-style`, and `--listings` options. The `writerListings` and `writerHighlightStyle` fields of the `WriterOptions` type are replaced with `writerHighlightStyle`. Closes: #10525
Diffstat (limited to 'doc')
-rw-r--r--doc/pandoc-server.md25
1 files changed, 19 insertions, 6 deletions
diff --git a/doc/pandoc-server.md b/doc/pandoc-server.md
index 881e16f46..8289314eb 100644
--- a/doc/pandoc-server.md
+++ b/doc/pandoc-server.md
@@ -203,15 +203,28 @@ the first one given is the default.
: Causes HTML comments to be stripped in Markdown or Textile
source, instead of being passed through to the output format.
-`highlight-style` (string, leave unset for no highlighting)
+`syntax-highlighting` (`"default"|"none"|"idiomatic"|style`)
+
+: The method used for code syntax highlighting. Setting a
+ specific *style* causes highlighting to be performed with the
+ internal highlighting engine, using KDE syntax definitions and
+ styles. The `"idiomatic"` method uses a format-specific
+ highlighter if one is available, or the default style if the
+ target format has no idiomatic highlighting method. Setting
+ this option to `none` disables all syntax highlighting. The
+ `"default"` method uses a format-specific default.
-: Specify the style to use for syntax highlighting of code.
Standard styles are `"pygments"` (the default), `"kate"`,
`"monochrome"`, `"breezeDark"`, `"espresso"`, `"zenburn"`,
- `"haddock"`, and `"tango"`. Alternatively, the path of
- a `.theme` with a KDE syntax theme may be used (in this
- case, the relevant file contents must also be included
- in `files`, see below).
+ `"haddock"`, and `"tango"`. Alternatively, the path of a
+ `.theme` with a KDE syntax theme may be used (in this case,
+ the relevant file contents must also be included in `files`,
+ see below).
+
+ The default for HTML, EPUB, Docx, Ms, Man, and LaTeX output is
+ to use the internal highlighter with the default style; Typst
+ output relies on Typst's own syntax highlighting system by
+ default.
`embed-resources`