Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias TryExcept body Import alias alias alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Dict Str Str Str Str ListLoad Str Str Str Str Str Str ListLoad Str Str ListLoad Str ListLoad Str Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Break orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str body For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Break orelse If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body For NameStore TupleLoad Str Str body For NameStore NameLoad body TryExcept body Assign NameStore BinOpMod Str TupleLoad NameLoad BoolOpAnd NameLoad BinOpAdd Str NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Continue orelse If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str ListLoad Str Str Str Str AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Str Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad Str ListLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd BinOpAdd BinOpMult NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return TupleLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameStore NameStore Num For TupleStore NameStore NameStore NameLoad body While CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Num AugAssignAdd NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr If CompareEq BinOpMod NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpSub BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad NameLoad Num TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Delete NameDel decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpSub BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad NameLoad NameLoad TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Assign NameStore ListLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Assign NameStore Str decorator_list
N/A N/A 
    pygments.formatters.img
    ~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for Pixmap output.

    :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
 N/A sys commands getstatusoutput pygments.formatter Formatter pygments.util get_bool_opt get_int_opt get_list_opt get_choice_opt N/A N/A N/A Image ImageDraw ImageFont N/A pil_available True N/A N/A N/A ImportError N/A N/A pil_available False N/A N/A N/A _winreg N/A N/A N/A ImportError N/A N/A _winreg None N/A __all__ N/A ImageFormatter GifImageFormatter JpgImageFormatter BmpImageFormatter N/A STYLES N/A NORMAL ITALIC BOLD BOLDITALIC N/A Roman Book Normal Regular Medium N/A Oblique Italic N/A Bold N/A Bold Oblique Bold Italic N/A DEFAULT_FONT_NAME_NIX Bitstream Vera Sans Mono N/A DEFAULT_FONT_NAME_WIN Courier New PilNotAvailable N/A ImportError N/A N/A When Python imaging library is not available N/A FontNotFound N/A Exception N/A N/A When there are no usable fonts specified N/A FontManager N/A object N/A N/A 
    Manages a set of fonts: normal, italic, bold, etc...
     __init__ N/A N/A self font_name font_size N/A 14 N/A N/A N/A self font_name font_name N/A N/A self font_size font_size N/A N/A self fonts N/A N/A N/A self encoding None N/A N/A N/A N/A sys platform startswith win N/A N/A N/A font_name N/A N/A N/A self font_name DEFAULT_FONT_NAME_WIN N/A N/A N/A self _create_win N/A N/A N/A font_name N/A N/A N/A self font_name DEFAULT_FONT_NAME_NIX N/A N/A N/A self _create_nix N/A _get_nix_font_path N/A N/A self name style N/A N/A N/A N/A exit out N/A getstatusoutput N/A fc-list "%s:style=%s" file N/A name style N/A N/A exit N/A N/A lines N/A N/A out splitlines N/A lines N/A N/A path N/A N/A N/A N/A N/A lines N/A 0 strip strip : N/A path N/A _create_nix N/A N/A self N/A N/A N/A name N/A STYLES N/A NORMAL N/A N/A path N/A N/A self _get_nix_font_path N/A self font_name name N/A N/A path None N/A N/A N/A N/A self fonts N/A NORMAL N/A N/A ImageFont truetype path N/A self font_size N/A N/A N/A N/A FontNotFound N/A No usable fonts named: "%s" N/A self font_name N/A style N/A ITALIC BOLD BOLDITALIC N/A N/A stylename N/A STYLES N/A style N/A N/A path N/A N/A self _get_nix_font_path N/A self font_name stylename N/A N/A path None N/A N/A N/A N/A self fonts N/A style N/A N/A ImageFont truetype path N/A self font_size N/A N/A N/A N/A style BOLDITALIC N/A N/A N/A N/A self fonts N/A style N/A N/A self fonts N/A BOLD N/A N/A N/A N/A self fonts N/A style N/A N/A self fonts N/A NORMAL N/A _lookup_win N/A N/A self key basename styles fail N/A False N/A N/A suffix N/A  (TrueType) N/A N/A style styles N/A N/A N/A N/A valname N/A %s%s%s N/A basename N/A style N/A style suffix N/A N/A val _ N/A N/A _winreg QueryValueEx key valname N/A val N/A N/A N/A EnvironmentError N/A N/A N/A N/A fail N/A N/A N/A FontNotFound N/A Font %s (%s) not found in registry N/A basename N/A styles N/A 0 N/A None N/A _create_win N/A N/A self N/A N/A N/A N/A N/A key N/A N/A _winreg OpenKey N/A _winreg HKEY_LOCAL_MACHINE Software\Microsoft\Windows NT\CurrentVersion\Fonts N/A N/A N/A EnvironmentError N/A N/A N/A N/A key N/A N/A _winreg OpenKey N/A _winreg HKEY_LOCAL_MACHINE Software\Microsoft\Windows\CurrentVersion\Fonts N/A N/A N/A EnvironmentError N/A N/A N/A FontNotFound Can't open Windows font registry key N/A N/A N/A path N/A N/A self _lookup_win key N/A self font_name N/A STYLES N/A NORMAL True N/A N/A N/A self fonts N/A NORMAL N/A N/A ImageFont truetype path N/A self font_size N/A style N/A ITALIC BOLD BOLDITALIC N/A N/A path N/A N/A self _lookup_win key N/A self font_name N/A STYLES N/A style N/A path N/A N/A N/A N/A self fonts N/A style N/A N/A ImageFont truetype path N/A self font_size N/A N/A N/A style BOLDITALIC N/A N/A N/A N/A self fonts N/A style N/A N/A self fonts N/A BOLD N/A N/A N/A N/A self fonts N/A style N/A N/A self fonts N/A NORMAL N/A N/A N/A N/A _winreg CloseKey key N/A get_char_size N/A N/A self N/A N/A N/A 
        Get the character size.
         N/A N/A N/A N/A N/A self fonts N/A NORMAL getsize M N/A get_font N/A N/A self bold oblique N/A N/A N/A 
        Get the font based on bold and italic flags.
         N/A N/A bold oblique N/A N/A N/A N/A self fonts N/A BOLDITALIC N/A N/A bold N/A N/A N/A N/A self fonts N/A BOLD N/A N/A oblique N/A N/A N/A N/A self fonts N/A ITALIC N/A N/A N/A N/A self fonts N/A NORMAL N/A N/A ImageFormatter N/A Formatter N/A N/A 
    Create a PNG image from source code. This uses the Python Imaging Library to
    generate a pixmap from the source code.

    *New in Pygments 0.10.*

    Additional options accepted:

    `image_format`
        An image format to output to that is recognised by PIL, these include:

        * "PNG" (default)
        * "JPEG"
        * "BMP"
        * "GIF"

    `line_pad`
        The extra spacing (in pixels) between each line of text.

        Default: 2

    `font_name`
        The font name to be used as the base font from which others, such as
        bold and italic fonts will be generated.  This really should be a
        monospace font to look sane.

        Default: "Bitstream Vera Sans Mono"

    `font_size`
        The font size in points to be used.

        Default: 14

    `image_pad`
        The padding, in pixels to be used at each edge of the resulting image.

        Default: 10

    `line_numbers`
        Whether line numbers should be shown: True/False

        Default: True

    `line_number_start`
        The line number of the first line.

        Default: 1

    `line_number_step`
        The step used when printing line numbers.

        Default: 1

    `line_number_bg`
        The background colour (in "#123456" format) of the line number bar, or
        None to use the style background color.

        Default: "#eed"

    `line_number_fg`
        The text color of the line numbers (in "#123456"-like format).

        Default: "#886"

    `line_number_chars`
        The number of columns of line numbers allowable in the line number
        margin.

        Default: 2

    `line_number_bold`
        Whether line numbers will be bold: True/False

        Default: False

    `line_number_italic`
        Whether line numbers will be italicized: True/False

        Default: False

    `line_number_separator`
        Whether a line will be drawn between the line number area and the
        source code area: True/False

        Default: True

    `line_number_pad`
        The horizontal padding (in pixels) between the line number margin, and
        the source code area.

        Default: 6

    `hl_lines`
        Specify a list of lines to be highlighted.  *New in Pygments 1.2.*

        Default: empty list

    `hl_color`
        Specify the color for highlighting lines.  *New in Pygments 1.2.*

        Default: highlight color of the selected style
     N/A name img N/A aliases N/A img IMG png N/A filenames N/A *.png N/A unicodeoutput False N/A default_image_format png __init__ N/A N/A self N/A options N/A N/A 
        See the class docstring for explanation of options.
         N/A N/A pil_available N/A N/A N/A PilNotAvailable Python Imaging Library is required for this formatter N/A N/A N/A Formatter __init__ self options N/A N/A self styles N/A dict N/A self style N/A N/A N/A N/A self style background_color None N/A N/A N/A self background_color #fff N/A N/A N/A self background_color N/A N/A self style background_color N/A N/A self image_format N/A get_choice_opt options image_format N/A png jpeg gif bmp N/A self default_image_format normcase True N/A N/A self image_pad N/A get_int_opt options image_pad 10 N/A N/A self line_pad N/A get_int_opt options line_pad 2 N/A fontsize N/A get_int_opt options font_size 14 N/A N/A self fonts N/A FontManager N/A N/A options get font_name fontsize N/A N/A N/A self fontw N/A self fonth N/A N/A N/A self fonts get_char_size N/A N/A self line_number_fg N/A N/A options get line_number_fg #886 N/A N/A self line_number_bg N/A N/A options get line_number_bg #eed N/A N/A self line_number_chars N/A get_int_opt options line_number_chars 2 N/A N/A self line_number_bold N/A get_bool_opt options line_number_bold False N/A N/A self line_number_italic N/A get_bool_opt options line_number_italic False N/A N/A self line_number_pad N/A get_int_opt options line_number_pad 6 N/A N/A self line_numbers N/A get_bool_opt options line_numbers True N/A N/A self line_number_separator N/A get_bool_opt options line_number_separator True N/A N/A self line_number_step N/A get_int_opt options line_number_step 1 N/A N/A self line_number_start N/A get_int_opt options line_number_start 1 N/A N/A self line_numbers N/A N/A N/A self line_number_width N/A N/A N/A self fontw N/A self line_number_chars N/A N/A self line_number_pad 2 N/A N/A N/A self line_number_width 0 N/A N/A self hl_lines N/A N/A hl_lines_str N/A get_list_opt options hl_lines N/A N/A line hl_lines_str N/A N/A N/A N/A N/A N/A N/A self hl_lines append N/A int line N/A N/A N/A ValueError N/A N/A N/A N/A self hl_color N/A N/A N/A options get hl_color N/A N/A self style highlight_color #f90 N/A N/A self drawables N/A N/A get_style_defs N/A N/A self arg N/A N/A N/A N/A NotImplementedError The -S option is meaningless for the image formatter. Use -O style=<stylename> instead. N/A _get_line_height N/A N/A self N/A N/A N/A 
        Get the height of a line.
         N/A N/A N/A self fonth N/A self line_pad N/A _get_line_y N/A N/A self lineno N/A N/A N/A 
        Get the Y coordinate of a line number.
         N/A N/A N/A lineno N/A N/A self _get_line_height N/A self image_pad N/A _get_char_width N/A N/A self N/A N/A N/A 
        Get the width of a character.
         N/A N/A self fontw N/A _get_char_x N/A N/A self charno N/A N/A N/A 
        Get the X coordinate of a character position.
         N/A N/A N/A N/A charno N/A self fontw N/A self image_pad N/A self line_number_width N/A _get_text_pos N/A N/A self charno lineno N/A N/A N/A 
        Get the actual position for a character and line position.
         N/A N/A N/A N/A self _get_char_x charno N/A N/A self _get_line_y lineno N/A _get_linenumber_pos N/A N/A self lineno N/A N/A N/A 
        Get the actual position for the start of a line number.
         N/A N/A N/A self image_pad N/A N/A self _get_line_y lineno N/A _get_text_color N/A N/A self style N/A N/A N/A 
        Get the correct color for the token from the style.
         N/A N/A N/A style N/A color None N/A N/A fill N/A # N/A style N/A color N/A N/A fill #000 N/A fill N/A _get_style_font N/A N/A self style N/A N/A N/A 
        Get the correct font for the style.
         N/A N/A N/A N/A self fonts get_font N/A style N/A bold N/A style N/A italic N/A _get_image_size N/A N/A self maxcharno maxlineno N/A N/A N/A 
        Get the required image size.
         N/A N/A N/A N/A N/A self _get_char_x maxcharno N/A self image_pad N/A N/A N/A self _get_line_y N/A maxlineno 0 N/A self image_pad N/A _draw_linenumber N/A N/A self posno lineno N/A N/A N/A 
        Remember a line number drawable to paint later.
         N/A N/A N/A self _draw_text N/A N/A self _get_linenumber_pos posno N/A N/A N/A str lineno rjust N/A self line_number_chars font N/A N/A N/A self fonts get_font N/A self line_number_bold N/A self line_number_italic fill N/A self line_number_fg N/A _draw_text N/A N/A self pos text font N/A kw N/A N/A 
        Remember a single drawable tuple to paint later.
         N/A N/A N/A N/A self drawables append N/A pos text font kw N/A _create_drawables N/A N/A self tokensource N/A N/A N/A 
        Create drawables for the token content.
         N/A lineno charno maxcharno 0 N/A N/A ttype value tokensource N/A N/A N/A ttype N/A self styles N/A N/A ttype N/A ttype parent N/A style N/A N/A self styles N/A ttype N/A value N/A N/A value expandtabs 4 N/A lines N/A N/A value splitlines True N/A N/A i line N/A enumerate lines N/A N/A temp N/A N/A line rstrip N/A temp N/A N/A N/A N/A self _draw_text N/A N/A self _get_text_pos charno lineno temp font N/A N/A self _get_style_font style fill N/A N/A self _get_text_color style N/A charno N/A len temp N/A maxcharno N/A max maxcharno charno N/A N/A N/A line endswith N/A N/A charno 0 N/A lineno 1 N/A N/A self maxcharno maxcharno N/A N/A self maxlineno lineno N/A _draw_line_numbers N/A N/A self N/A N/A N/A 
        Create drawables for the line numbers.
         N/A N/A N/A self line_numbers N/A N/A N/A p N/A xrange N/A self maxlineno N/A N/A n N/A p N/A self line_number_start N/A N/A N/A n N/A self line_number_step 0 N/A N/A N/A N/A self _draw_linenumber p n N/A _paint_line_number_bg N/A N/A self im N/A N/A N/A 
        Paint the line number background on the image.
         N/A N/A N/A self line_numbers N/A N/A N/A N/A N/A self line_number_fg None N/A N/A N/A draw N/A N/A ImageDraw Draw im N/A recth N/A N/A im size N/A -1 N/A rectw N/A N/A N/A self image_pad N/A self line_number_width N/A self line_number_pad N/A N/A N/A draw rectangle N/A N/A 0 0 N/A rectw recth fill N/A self line_number_bg N/A N/A N/A draw line N/A N/A rectw 0 N/A rectw recth fill N/A self line_number_fg N/A draw N/A format N/A N/A self tokensource outfile N/A N/A N/A 
        Format ``tokensource``, an iterable of ``(tokentype, tokenstring)``
        tuples and write it into ``outfile``.

        This implementation calculates where it should draw each token on the
        pixmap, then calculates the required pixmap size and draws the items.
         N/A N/A N/A self _create_drawables tokensource N/A N/A N/A self _draw_line_numbers N/A im N/A N/A Image new RGB N/A N/A self _get_image_size N/A self maxcharno N/A self maxlineno N/A self background_color N/A N/A N/A self _paint_line_number_bg im N/A draw N/A N/A ImageDraw Draw im N/A N/A self hl_lines N/A N/A x N/A N/A N/A N/A self image_pad N/A self line_number_width N/A self line_number_pad 1 N/A recth N/A N/A self _get_line_height N/A rectw N/A N/A N/A im size N/A 0 x N/A linenumber N/A self hl_lines N/A N/A y N/A N/A self _get_line_y N/A linenumber 1 N/A N/A N/A draw rectangle N/A N/A x y N/A N/A x rectw N/A y recth fill N/A self hl_color N/A N/A pos value font kw N/A self drawables N/A N/A N/A N/A draw text pos value font font kw N/A N/A N/A im save outfile N/A N/A N/A self image_format upper N/A N/A GifImageFormatter N/A ImageFormatter N/A N/A 
    Create a GIF image from source code. This uses the Python Imaging Library to
    generate a pixmap from the source code.

    *New in Pygments 1.0.* (You could create GIF images before by passing a
    suitable `image_format` option to the `ImageFormatter`.)
     N/A name img_gif N/A aliases N/A gif N/A filenames N/A *.gif N/A default_image_format gif N/A JpgImageFormatter N/A ImageFormatter N/A N/A 
    Create a JPEG image from source code. This uses the Python Imaging Library to
    generate a pixmap from the source code.

    *New in Pygments 1.0.* (You could create JPEG images before by passing a
    suitable `image_format` option to the `ImageFormatter`.)
     N/A name img_jpg N/A aliases N/A jpg jpeg N/A filenames N/A *.jpg N/A default_image_format jpeg N/A BmpImageFormatter N/A ImageFormatter N/A N/A 
    Create a bitmap image from source code. This uses the Python Imaging Library to
    generate a pixmap from the source code.

    *New in Pygments 1.0.* (You could create bitmap images before by passing a
    suitable `image_format` option to the `ImageFormatter`.)
     N/A name img_bmp N/A aliases N/A bmp bitmap N/A filenames N/A *.bmp N/A default_image_format bmp N/A