Input

Language

Ruby is missing from that list on purpose. The command-line tool supports it, but this page cannot: the Ruby parser (prism) is a C library, and its sources do not build for the wasm32-unknown-unknown target this bundle is compiled to. Ruby is CLI-only.

Python options

With every strip flag off, Python formatting is context-lossless: comments, docstrings and annotations are kept, and only syntactic noise (whitespace, blank lines, indentation width) is minimized.

Result

Nothing formatted yet. Paste some code and press Format.