Tools
Booting container...
A Prettier code formatting demo that formats intentionally messy code and shows before/after diffs. Supports JavaScript, HTML, Markdown, and JSON with a configurable .prettierrc.
How it works
- The real Prettier formatting engine runs in the browser
- A diff view shows side-by-side or before/after formatting changes
- A
.prettierrcfile controls formatting rules - JS, HTML, Markdown, and JSON files can all be formatted
Try it yourself
- Select a file and click format to see the before/after diff
- Edit
.prettierrcto change formatting rules (tabs, semicolons, etc.) - Write intentionally messy code and format it