class Formatter:
Known subclasses: pygments.formatters.bbcode.BBCodeFormatter
, pygments.formatters.groff.GroffFormatter
, pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.irc.IRCFormatter
, pygments.formatters.latex.LatexFormatter
, pygments.formatters.other.NullFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.other.TestcaseFormatter
, pygments.formatters.pangomarkup.PangoMarkupFormatter
, pygments.formatters.rtf.RtfFormatter
, pygments.formatters.svg.SvgFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
Converts a token stream to text.
Options accepted:
Method | format |
Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile. |
Method | get_style_defs |
Return the style definitions for the current style as a string. |
Class Variable | aliases |
Undocumented |
Class Variable | filenames |
Undocumented |
Class Variable | name |
Undocumented |
Method | __init__ |
Undocumented |
Class Variable | unicodeoutput |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | full |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | style |
Undocumented |
Instance Variable | title |
Undocumented |
pygments.formatters.img.ImageFormatter
, pygments.formatters.other.NullFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.other.TestcaseFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.latex.LatexFormatter
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.
list
=
pygments.formatters.bbcode.BBCodeFormatter
, pygments.formatters.groff.GroffFormatter
, pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.irc.IRCFormatter
, pygments.formatters.latex.LatexFormatter
, pygments.formatters.other.NullFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.other.TestcaseFormatter
, pygments.formatters.pangomarkup.PangoMarkupFormatter
, pygments.formatters.rtf.RtfFormatter
, pygments.formatters.svg.SvgFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
Undocumented
list
=
pygments.formatters.bbcode.BBCodeFormatter
, pygments.formatters.groff.GroffFormatter
, pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.irc.IRCFormatter
, pygments.formatters.latex.LatexFormatter
, pygments.formatters.other.NullFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.pangomarkup.PangoMarkupFormatter
, pygments.formatters.rtf.RtfFormatter
, pygments.formatters.svg.SvgFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
Undocumented
pygments.formatters.bbcode.BBCodeFormatter
, pygments.formatters.groff.GroffFormatter
, pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.irc.IRCFormatter
, pygments.formatters.latex.LatexFormatter
, pygments.formatters.other.NullFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.other.TestcaseFormatter
, pygments.formatters.pangomarkup.PangoMarkupFormatter
, pygments.formatters.rtf.RtfFormatter
, pygments.formatters.svg.SvgFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
Undocumented
pygments.formatters.bbcode.BBCodeFormatter
, pygments.formatters.groff.GroffFormatter
, pygments.formatters.html.HtmlFormatter
, pygments.formatters.img.ImageFormatter
, pygments.formatters.irc.IRCFormatter
, pygments.formatters.latex.LatexFormatter
, pygments.formatters.other.RawTokenFormatter
, pygments.formatters.other.TestcaseFormatter
, pygments.formatters.pangomarkup.PangoMarkupFormatter
, pygments.formatters.rtf.RtfFormatter
, pygments.formatters.svg.SvgFormatter
, pygments.formatters.terminal.TerminalFormatter
, pygments.formatters.terminal256.Terminal256Formatter
Undocumented