Try out Pygments!

This website requires JavaScript (and WebAssembly)

You can also try out pygments locally by running pip install pygments. Then you can use the command-line interface.

The highlighting here is performed in-browser using the latest Pygments master branch, running through a WASM Python interpreter, courtesy of Pyodide.

Your content is neither sent over the web nor stored anywhere.