summaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-30 21:51:11 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-30 22:36:36 +0200
commit80d093843b4f782dda73054d4fc4ba9ef2a82843 (patch)
tree075da505671ae010f165c2663a8b411ce9a9f10d /MANUAL.txt
parentea84cd0842ede0ff9835bc4aae47c949ee1d1dd2 (diff)
Allow dynamic loading of syntax definitions.
See #3334. * Add writerSyntaxMap to WriterOptions. * Highlighting: added parameter for SyntaxMap to highlight. * Implemented --syntax-definition option. TODO: [ ] Figure out whether we want to have the xml parsing depend on the dtd (it currently does, and fails unless the language.dtd is found in the same directory). [ ] Add an option to read a KDE syntax highlighting theme as a custom style. [ ] Add tests.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index f0e951f75..569c04781 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -639,6 +639,14 @@ General writer options
[Syntax highlighting], below. See also
`--list-highlight-styles`.
+`--syntax-definition=`*FILE*
+
+: Instructs pandoc to load a KDE XML syntax definition file,
+ which will be used for syntax highlighting of appropriately
+ marked code blocks. This can be used to add support for
+ new languages or to use altered syntax definitions for
+ existing languages.
+
`-H` *FILE*, `--include-in-header=`*FILE*
: Include contents of *FILE*, verbatim, at the end of the header.