diff options
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | pygments/lexer.py | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -4,10 +4,14 @@ Todo for 0.6 ------- +- encoding, unicode support + - improve guess_lexer heuristics (esp. for template langs) - more unit tests (pygmentize...) +- help for -O and -a cmdline options + - allow "overlay" token types (e.g. Diff + X) - highlight specials: nth line, a word etc. - dhtml: overlays toggleable by javascript diff --git a/pygments/lexer.py b/pygments/lexer.py index 1b55c5d0..cd9671fd 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -74,6 +74,7 @@ class Lexer(object): self.stripnl = get_bool_opt(options, 'stripnl', True) self.stripall = get_bool_opt(options, 'stripall', False) self.tabsize = get_int_opt(options, 'tabsize', 0) + self.encoding = options.get('encoding', '') def __repr__(self): if self.options: |