Function | colorize_codeblock |
Colorize a string containing only Python code. This method differs from colorize_doctest in that it will not search for doctest prompts when deciding how to colorize the string. |
Function | colorize_codeblock_body |
Undocumented |
Function | colorize_doctest |
Perform syntax highlighting on the given doctest string, and return the resulting HTML code. |
Function | colorize_doctest_body |
Undocumented |
Function | subfunc |
Undocumented |
Constant | DEFINE_FUNC_RE |
Undocumented |
Constant | DOCTEST_DIRECTIVE_RE |
Undocumented |
Constant | DOCTEST_EXAMPLE_RE |
Undocumented |
Constant | DOCTEST_RE |
Undocumented |
Constant | EXCEPT_RE |
Undocumented |
Constant | PROMPT2_RE |
Undocumented |
Constant | PROMPT_RE |
Undocumented |
Constant | _BUILTIN_GRP |
Undocumented |
Constant | _BUILTINS |
Undocumented |
Constant | _COMMENT_GRP |
Undocumented |
Constant | _DEFINE_GRP |
Undocumented |
Constant | _KEYWORD_GRP |
Undocumented |
Constant | _KEYWORDS |
Undocumented |
Constant | _PROMPT1_GRP |
Undocumented |
Constant | _PROMPT2_GRP |
Undocumented |
Constant | _STRING_GRP |
Undocumented |
Colorize a string containing only Python code. This method differs from colorize_doctest
in that it will not search for doctest prompts when deciding how to colorize the string.
This code consists of a <pre> block with class=py-doctest. Syntax highlighting is performed using the following CSS classes:
Parameters | |
s:str | Undocumented |
Returns | |
Tag | Undocumented |
Undocumented
Parameters | |
s:str | Undocumented |
Returns | |
Iterator[ | Undocumented |
Perform syntax highlighting on the given doctest string, and return the resulting HTML code.
This code consists of a <pre> block with class=py-doctest. Syntax highlighting is performed using the following CSS classes:
colorize_codeblock
Parameters | |
s:str | Undocumented |
Returns | |
Tag | Undocumented |
Undocumented
Parameters | |
s:str | Undocumented |
Returns | |
Iterator[ | Undocumented |
Undocumented
Parameters | |
match:Match[ | Undocumented |
Returns | |
Iterator[ | Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|