Skip to content

syntax_highlight ¤

Functions:

Attributes:

style module-attribute ¤

style = add_param(
    "syntax-highlight-style",
    "monokai",
    "source code / assembly syntax highlight stylename of pygments module",
)

formatter module-attribute ¤

formatter = Terminal256Formatter(style=str(style))

pwntools_lexer module-attribute ¤

pwntools_lexer = PwntoolsLexer()

lexer_cache module-attribute ¤

lexer_cache: dict[str, Any] = {}

check_style ¤

check_style() -> None

syntax_highlight ¤

syntax_highlight(code: str, filename: str = '.asm') -> str