Base formatter class.
copyright: | Copyright 2006-2013 by the Pygments team, see AUTHORS. |
---|---|
license: | BSD, see LICENSE for details. |
Converts a token stream to text.
Options accepted:
Shortcuts for the formatter
fn match rules
Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile.
Return the style definitions for the current style as a string.
arg is an additional argument whose meaning depends on the formatter used. Note that arg can also be a list or tuple for some formatters like the html formatter.
Name of the formatter
If True, this formatter outputs Unicode strings when no encoding option is given.