summaryrefslogtreecommitdiff
path: root/pygments/formatter.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-12 23:38:46 +0100
committergbrandl <devnull@localhost>2007-02-12 23:38:46 +0100
commit8ac95bf314343f8db0ec8123296b60aefda8b02f (patch)
tree7813371046f03132d690b8556c857fc453e6c9b6 /pygments/formatter.py
parent16b1f0bb0fbc6ea7aab974cb220406632de4c7c0 (diff)
downloadpygments-8ac95bf314343f8db0ec8123296b60aefda8b02f.tar.gz
[svn] Quite a few things:
- new pygmentize options, -F for filters and -H for detail help. - an automatically-created formatter map - better HTML formatter subclassing
Diffstat (limited to 'pygments/formatter.py')
-rw-r--r--pygments/formatter.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pygments/formatter.py b/pygments/formatter.py
index d84e76e6..60848b52 100644
--- a/pygments/formatter.py
+++ b/pygments/formatter.py
@@ -48,6 +48,15 @@ class Formatter(object):
Overrides ``encoding`` if given.
"""
+ #: Name of the formatter
+ name = None
+
+ #: Shortcuts for the formatter
+ aliases = []
+
+ #: fn match rules
+ filenames = []
+
#: If True, this formatter outputs Unicode strings when no encoding
#: option is given.
unicodeoutput = True