mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
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
7 lines
154 B
Markdown
7 lines
154 B
Markdown
```
|
|
% pandoc --syntax-highlighting=idiomatic -t latex
|
|
`int a = 1;`{.cpp style=cpp}
|
|
^D
|
|
\passthrough{\lstinline[language={C++}, style=cpp]!int a = 1;!}
|
|
```
|