keyword
def, class, if, for, return
██████╗ ██╗ ██╗██████╗ ██████╗ ██████╗ ███████╗ ██╔══██╗╚██╗ ██╔╝╚════██╗██╔══██╗██╔══██╗██╔════╝ ██████╔╝ ╚████╔╝ █████╔╝██████╔╝██║ ██║█████╗ ██╔═══╝ ╚██╔╝ ██╔═══╝ ██╔═══╝ ██║ ██║██╔══╝ ██║ ██║ ███████╗██║ ██████╔╝██║ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝
Drop any .py file and get back a PDF that looks exactly like Python IDLE — orange keywords, purple builtins, green strings, red comments, blue function names. Everything runs in your browser; your code never leaves your machine.
py2pdf uses the exact colour scheme from Python IDLE — the editor that ships with every Python installation. These colours have been the Python standard since the early 2000s.
Your code never leaves your machine. Tokenisation and PDF generation both run in the browser using JavaScript. No files are uploaded to any server.