summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-01-25 20:00:35 +0100
committergbrandl <devnull@localhost>2007-01-25 20:00:35 +0100
commit1699701fd132c19974be66c5664a88a90a32a3d2 (patch)
tree7163ddc984cb36c862979a5f5f86bc4a4e85eaff /docs/src
parent8661de37c9a04da977fd8da8542e36115ee83fb2 (diff)
downloadpygments-1699701fd132c19974be66c5664a88a90a32a3d2.tar.gz
[svn] - add missing example files
- add "outencoding" option to formatters - improve cmdline error reporting
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/formatters.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/src/formatters.txt b/docs/src/formatters.txt
index 3832a3f1..1478fc9e 100644
--- a/docs/src/formatters.txt
+++ b/docs/src/formatters.txt
@@ -30,6 +30,16 @@ All formatters support this option:
supports Unicode arguments to `write()`. Using a regular file object
wouldn't work.
+`outencoding`
+ *New in Pygments 0.7.*
+
+ When using Pygments from the command line, any `encoding` option given is
+ passed to the lexer and the formatter. This is sometimes not desirable,
+ for example if you want to set the input encoding to ``"guess"``.
+ Therefore, `outencoding` has been introduced which overrides `encoding`
+ for the formatter if given.
+
+
The `HtmlFormatter` and `LatexFormatter` classes support these options:
`style`