| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Polyglot Formatter v1.0.0 source code.tar.gz | 2026-05-01 | 236.7 kB | |
| Polyglot Formatter v1.0.0 source code.zip | 2026-05-01 | 242.7 kB | |
| README.md | 2026-05-01 | 3.1 kB | |
| Totals: 3 Items | 482.5 kB | 4 | |
Polyglot Formatter v1.0.0
First stable release of Polyglot Formatter — a client-side multi-language code beautifier for HTML, CSS, JavaScript, PHP and JSON.
This release introduces the full browser-based formatter UI, automatic language detection, syntax-highlighted output, configurable formatting options and safety-focused formatting modes.
✨ Highlights
- Multi-language formatting for HTML, CSS, JavaScript, PHP and JSON
- Automatic language detection based on pasted input
- Client-side only — no backend, no database, no installation required
- CodeMirror editor with line numbers, bracket matching and auto-close brackets
- Prism.js syntax highlighting for formatted output
- js-beautify integration for HTML, CSS and JavaScript formatting
- Custom PHP formatter for PHP and mixed PHP/HTML code
- JSON pretty-printing with quoted-key preservation
- Safe mode by default to avoid modifying runtime string values
- Optional Deep mode for more aggressive nested string formatting
- Copy Output button for fast workflow
- Responsive dark UI with Material Darker styling
🧩 Added
- Auto-detection engine for:
- HTML
- CSS
- JavaScript
- PHP
- JSON
- HTML formatter with support for nested
<style>and<script>blocks - CSS formatter with safer handling of
content: "..."values - JavaScript formatter with optional nested string/template formatting
- PHP formatter for pure PHP and mixed PHP/HTML files
- JSON formatter using
JSON.parseand structured pretty-printing - Deep mode warning banner
- Preserve Newlines option
- Preserve quoted keys option
- Configurable indentation: 2 or 4 spaces
- Adjustable wrap length: 40–300 characters
- Detected language badge
- Output validation messages
- Error and success banners
- Mobile-friendly responsive panel layout
- Project documentation:
- README.md
- CHANGELOG.md
- SECURITY.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- LICENSE
⚠️ Known Limitations
Polyglot Formatter is still a work in progress. Multi-language formatting with deeply nested HTML, CSS, JavaScript, PHP and JSON combinations is complex, and some edge cases may still produce imperfect formatting.
If you find broken formatting or unexpected behavior, please report it here:
:::text
https://github.com/neikiri/polyglot-formatter/issues
📦 Installation
No installation is required.
Clone the repository and open index.html in your browser, or use the live version:
:::text
https://neiki.eu/polyglot-formatter
📄 License
Released under the MIT License.