Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias TryExcept body ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad Str NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Str If NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Num NameLoad If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Num NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad Str attr NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str ListLoad NameLoad Str ListLoad NameLoad Str ListLoad NameLoad Str ListLoad Str Str ListLoad Str Str ListLoad NameLoad Str For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults Dict body Return Call NameLoad keyword NameLoad decorator_list
N/A N/A 
CodeHilite Extension for Python-Markdown
========================================

Adds code/syntax highlighting to standard Python-Markdown code blocks.

Copyright 2006-2008 [Waylan Limberg](http://achinghead.com/).

Project website: <http://packages.python.org/Markdown/extensions/code_hilite.html>
Contact: markdown@freewisdom.org

License: BSD (see ../LICENSE.md for details)

Dependencies:
* [Python 2.3+](http://python.org/)
* [Markdown 2.0+](http://packages.python.org/Markdown/)
* [Pygments](http://pygments.org/)

 __future__ absolute_import __future__ unicode_literals N/A Extension treeprocessors Treeprocessor N/A warnings N/A N/A pygments highlight pygments.lexers get_lexer_by_name guess_lexer TextLexer pygments.formatters HtmlFormatter N/A pygments True N/A N/A N/A ImportError N/A N/A pygments False CodeHilite N/A object N/A N/A 
    Determine language of source code, and pass it into the pygments hilighter.

    Basic Usage:
        >>> code = CodeHilite(src = 'some text')
        >>> html = code.hilite()

    * src: Source string or any object with a .readline attribute.

    * linenums: (Boolean) Set line numbering to 'on' (True), 'off' (False) or 'auto'(None). 
    Set to 'auto' by default.

    * guess_lang: (Boolean) Turn language auto-detection 'on' or 'off' (on by default).

    * css_class: Set class name of wrapper div ('codehilite' by default).

    Low Level Usage:
        >>> code = CodeHilite()
        >>> code.src = 'some text' # String or anything with a .readline attr.
        >>> code.linenos = True  # True or False; Turns line numbering on or of.
        >>> html = code.hilite()

     __init__ N/A N/A self src linenums guess_lang css_class lang style noclasses tab_length N/A None None True codehilite None default False 4 N/A N/A N/A self src src N/A N/A self lang lang N/A N/A self linenums linenums N/A N/A self guess_lang guess_lang N/A N/A self css_class css_class N/A N/A self style style N/A N/A self noclasses noclasses N/A N/A self tab_length tab_length N/A hilite N/A N/A self N/A N/A N/A 
        Pass code to the [Pygments](http://pygments.pocoo.org/) highliter with
        optional line numbers. The output should then be styled with css to
        your liking. No styles are applied by default - only styling hooks
        (i.e.: <span class="k">).

        returns : A string of html.

         N/A N/A self src N/A N/A N/A self src strip N/A N/A N/A self lang None N/A N/A N/A N/A self _getLang N/A pygments N/A N/A N/A N/A lexer N/A get_lexer_by_name N/A self lang N/A N/A N/A ValueError N/A N/A N/A N/A N/A self guess_lang N/A N/A lexer N/A guess_lexer N/A self src N/A N/A lexer N/A TextLexer N/A N/A N/A ValueError N/A N/A lexer N/A TextLexer N/A formatter N/A HtmlFormatter linenos N/A self linenums cssclass N/A self css_class style N/A self style noclasses N/A self noclasses N/A N/A highlight N/A self src lexer formatter N/A N/A txt N/A N/A N/A self src replace & &amp; N/A txt N/A N/A txt replace < &lt; N/A txt N/A N/A txt replace > &gt; N/A txt N/A N/A txt replace " &quot; N/A classes N/A N/A N/A self lang N/A N/A N/A N/A classes append N/A language-%s N/A self lang N/A N/A self linenums N/A N/A N/A N/A classes append linenums N/A class_str N/A classes N/A N/A class_str N/A  class="%s" N/A N/A join classes N/A N/A <pre class="%s"><code%s>%s</code></pre>
 N/A N/A self css_class class_str txt N/A _getLang N/A N/A self N/A N/A N/A 
        Determines language of a code block from shebang line and whether said
        line should be removed or left in place. If the sheband line contains a
        path (even a single /) then it is assumed to be a real shebang line and
        left alone. However, if no path is given (e.i.: #!python or :::python)
        then it is assumed to be a mock shebang for language identifitation of a
        code fragment and removed from the code block prior to processing for
        code highlighting. When a mock shebang (e.i: #!python) is found, line
        numbering is turned on. When colons are found in place of a shebang
        (e.i.: :::python), line numbering is left in the current state - off
        by default.

         N/A re N/A lines N/A N/A N/A self src split N/A fl N/A N/A lines pop 0 N/A c N/A N/A re compile 
            (?:(?:^::+)|(?P<shebang>^[#]!))	# Shebang or 2 or more colons.
            (?P<path>(?:/\w+)*[/ ])?        # Zero or 1 path
            (?P<lang>[\w+-]*)               # The language
             N/A re VERBOSE N/A m N/A N/A c search fl N/A m N/A N/A N/A N/A N/A self lang N/A N/A N/A N/A m group lang lower N/A N/A N/A IndexError N/A N/A N/A self lang None N/A N/A N/A m group path N/A N/A N/A N/A lines insert 0 fl N/A N/A N/A N/A self linenums None N/A N/A m group shebang N/A N/A N/A self linenums True N/A N/A N/A N/A lines insert 0 fl N/A N/A self src N/A N/A N/A N/A join lines strip N/A N/A HiliteTreeprocessor N/A Treeprocessor N/A N/A  Hilight source code in code blocks.  run N/A N/A self root N/A N/A N/A  Find code blocks and store in htmlStash.  N/A blocks N/A N/A root getiterator pre N/A block blocks N/A N/A children N/A N/A block getchildren N/A N/A N/A N/A len children 1 N/A N/A N/A children N/A 0 tag code N/A N/A code N/A CodeHilite N/A N/A children N/A 0 text linenums N/A N/A self config N/A linenums guess_lang N/A N/A self config N/A guess_lang css_class N/A N/A self config N/A css_class style N/A N/A self config N/A pygments_style noclasses N/A N/A self config N/A noclasses tab_length N/A N/A self markdown tab_length N/A placeholder N/A N/A N/A N/A self markdown htmlStash store N/A N/A code hilite safe True N/A N/A N/A block clear N/A N/A block tag p N/A N/A block text placeholder N/A N/A CodeHiliteExtension N/A Extension N/A N/A  Add source code hilighting to markdown codeblocks.  __init__ N/A N/A self configs N/A N/A N/A N/A self config N/A linenums force_linenos guess_lang css_class pygments_style noclasses N/A None Use lines numbers. True=yes, False=no, None=auto N/A False Depreciated! Use 'linenums' instead. Force line numbers - Default: False N/A True Automatic language detection - Default: True N/A codehilite Set class name for wrapper <div> - Default: codehilite N/A default Pygments HTML Formatter Style (Colorscheme) - Default: default N/A False Use inline styles instead of CSS classes - Default false N/A N/A key value configs N/A N/A N/A value True N/A N/A value True N/A N/A value False N/A N/A value False N/A N/A value None N/A N/A value None N/A N/A key force_linenos N/A N/A N/A N/A warnings warn The "force_linenos" config setting to the CodeHilite extension is deprecrecated. Use "linenums" instead. PendingDeprecationWarning N/A value N/A N/A N/A N/A self setConfig linenums True N/A N/A N/A self setConfig key value N/A extendMarkdown N/A N/A self md md_globals N/A N/A N/A  Add HilitePostprocessor to Markdown instance.  N/A hiliter N/A HiliteTreeprocessor md N/A N/A hiliter config N/A N/A self getConfigs N/A N/A N/A N/A md treeprocessors add hilite hiliter <inline N/A N/A N/A md registerExtension self N/A N/A makeExtension N/A N/A configs N/A N/A N/A N/A N/A CodeHiliteExtension configs configs N/A