lax is a collection of fast formatters that only adjust whitespace and leave everything else exactly as written.
It supports CSS, SCSS, Less, SQL, HTML, XML, SVG, Vue, Svelte, Astro, and other markup formats. The formatters use lossless tokenization and can be used as Rust libraries or dprint plugins.
This is free and open source software.
Key Features
- Only modifies whitespace
- Lossless tokenization preserves code
- Handles unknown syntax and vendor extensions
- Supports CSS, SCSS, and Less
- Dialect-agnostic SQL formatting
- Formats HTML, XML, SVG, Vue, Svelte, and Astro
- Idempotent formatting produces stable output
- Single-pass printing
- Available as Rust libraries
- dprint plugin support
- Plugins published to npm
Website: github.com/bartlomieju/lax
Support:
Developer: Bartłomiej Iwańczuk
License: MIT License
lax is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| CSS Code Formatters | |
|---|---|
| Prettier | Opinionated code formatter |
| CSScomb | Coding style formatter for CSS |
| UnCSS | Removes unused CSS from stylesheets |
| csscss | CSS redundancy analyzer |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

