class documentation

class IRCFormatter(Formatter):

View In Hierarchy

Format tokens with IRC color sequences

The get_style_defs() method doesn't do anything special since there is no support for common styles.

Options accepted:

bg
Set to "light" or "dark" depending on the terminal's background (default: "light").
colorscheme
A dictionary mapping token types to (lightbg, darkbg) color names or None (default: None = use builtin colorscheme).
linenos
Set to True to have line numbers in the output as well (default: False = no line numbers).
Method __init__ Undocumented
Method ​_format​_unencoded​_with​_lineno Undocumented
Method ​_write​_lineno Undocumented
Method format​_unencoded Undocumented
Class Variable aliases Undocumented
Class Variable filenames Undocumented
Class Variable name Undocumented
Instance Variable ​_lineno Undocumented
Instance Variable colorscheme Undocumented
Instance Variable darkbg Undocumented
Instance Variable linenos Undocumented

Inherited from Formatter:

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 unicodeoutput Undocumented
Instance Variable encoding Undocumented
Instance Variable full Undocumented
Instance Variable options Undocumented
Instance Variable style Undocumented
Instance Variable title Undocumented
def __init__(self, **options):

Undocumented

def _format_unencoded_with_lineno(self, tokensource, outfile):

Undocumented

def _write_lineno(self, outfile):

Undocumented

def format_unencoded(self, tokensource, outfile):

Undocumented

aliases: list[str] =

Undocumented

filenames: list =
name: str =

Undocumented

_lineno: int =

Undocumented

colorscheme =

Undocumented

darkbg =

Undocumented

linenos =

Undocumented