Skip to content

Syntax highlight

formatter = pygments.formatters.Terminal256Formatter(style=str(style)) module-attribute

lexer_cache: Dict[str, Any] = {} module-attribute

pwntools_lexer = PwntoolsLexer() module-attribute

style = theme.add_param('syntax-highlight-style', 'monokai', 'Source code / assembly syntax highlight stylename of pygments module') module-attribute

check_style()

syntax_highlight(code, filename='.asm')