Changelog
All notable changes to CodePrettify are documented here.
v1.0.3
Latest
March 14, 2026
🐛 Bug Fixes
- Prism.js Auto-Highlighting — Fixed Prism.js running
highlightAll()on every website, which could break syntax highlighting on sites like GitHub, Stack Overflow, and MDN. Prism is now set to manual mode so it only highlights within the extension's own container. - CSS Leaking to Other Sites — Fixed unscoped
.tokenCSS rules (syntax highlighting colors) being injected globally on all pages. All token styles are now scoped under#pretty-containerto prevent interference with other websites. - View Source Interference — Added protocol guards to prevent the extension from activating on
view-source:,chrome:, andabout:pages.
v1.0.2
January 29, 2026
✨ New Features
- Content-Type Detection — The extension now detects file types using HTTP Content-Type headers in addition to URL file extensions. This enables proper formatting of API endpoints like
https://api.github.com/users/githubthat serve JSON without a.jsonextension.
🐛 Bug Fixes
- RSS Code Folding — Fixed collapse/expand functionality for RSS/XML files not working correctly. Rewrote the fold system to use data attributes and indexed line access, matching the JS handler approach.
- Toolbar Buttons — Fixed collapse/expand buttons in the toolbar not appearing or disappearing dynamically when toggling the code folding setting. Buttons are now always created for supported file types and show/hide based on settings.
- Page Rendering — Fixed an issue where normal websites could turn white when the extension loaded. Added a pre-check loader that only applies content hiding for supported file types.
v1.0.1
January 28, 2026
✨ New Features
- RSS/Atom Feed Support — New file format support for
.rssand.atomfiles with syntax highlighting, auto-formatting, code folding for XML elements, clickable URLs (with entity decoding), and feed statistics (tags, attributes, namespaces, etc.). - Code Folding (JS) — Collapse/expand functions, classes, objects, and code blocks. Hover over a foldable line to see the fold toggle. Use Collapse All / Expand All buttons in the toolbar. Can be enabled/disabled in settings.
- Bracket Matching (JS) — Hover over
{,(, or[to highlight its matching pair. Both brackets are highlighted with visual feedback. Can be enabled/disabled in settings. - Code Folding Setting (JSON) — Added a setting to enable/disable the collapsible JSON feature.
- Code Statistics Panel — View file size, line count, and character count. Language-specific stats: JSON (object depth, key count, array sizes), JS (function count, variable count), CSS (selector count, rule count, media queries).
- Hex/RGB Color Preview (CSS) — Color swatches appear next to color values. Click to copy color in different formats. Includes a color picker.
- Breadcrumb Navigation (JSON) — Shows path like
root › data › users[0] › namewhen hovering/clicking. Click any breadcrumb to jump to that level. - Clickable URLs & Imports — URLs in strings and import/require paths are now clickable links.
🔧 Improvements
- Unified Layout — Adjusted all modal windows, toolbars, and UI elements to use CSS variables instead of hardcoded colors for consistent theming.
- Enhanced Syntax Checker — Removed vanilla JavaScript validation and replaced it with a sandboxed environment for safer and more accurate syntax checking.
🐛 Bug Fixes
- RSS Feed Rendering — Fixed issue where RSS feeds opened in a background tab (XHTML mode) failed to render correctly or caused high CPU usage. Now waits for tab visibility before rendering.
v1.0.0
Initial Release
January 2026
🚀 Smart Automation
- Auto-Format: Automatically detects messily formatted code and beautifies it with your preferred indentation
- Intelligent Minification Detection: Analyzes code density—if a file is minified, it formats it automatically; if it's already clean, it adds syntax highlighting
- Local File Support: Works seamlessly on web URLs and local files (
file://) opened in the browser - Zero-Flash Loading: Engineered to prevent raw text from flashing before the beautifier loads
🛡️ Syntax Validation & Error Checking
Don't just read code—debug it. CodePrettify scans your files for common errors with instant feedback.
- JSON: Detects syntax errors and provides the exact line number
- JavaScript: Identifies mismatched braces, brackets, and common typos
- CSS: Validates structural integrity
- Instant Feedback: Invalid code triggers non-intrusive toast notifications with error details
📂 Interactive JSON Viewer
- Collapsible Data: Fold arrays and objects to navigate large datasets easily
- Smart Previews: See summary info (e.g.,
Array(5)or{3 keys}) when blocks are collapsed - Clickable Links: URLs inside JSON strings automatically become clickable hyperlinks
- Expand/Collapse All: Dedicated buttons to manage massive JSON files instantly
🛠️ Powerful Toolkit
- Advanced Search: Custom search bar (
Ctrl+F) with result counting and navigation—works even on huge files - Go To Line: Jump straight to specific lines (
Ctrl+G), perfect for debugging stack traces - Export Options: Download your file in three formats: Original, Formatted, or Minified
- Copy to Clipboard: Quick one-click copy functionality
⚙️ Fully Customizable
- Themes: Choose between Light, Dark, or Auto (syncs with system)
- Format Settings: Adjustable font size (10-24px), indentation (2 or 4 spaces), and line numbers
- Privacy First: 100% client-side—your code never leaves your browser
⌨️ Keyboard Shortcuts
Ctrl+B— Toggle Raw/Pretty viewCtrl+Alt+C— Copy to ClipboardCtrl+F— Open Search ToolbarCtrl+G— Go to LineCtrl+Alt+T— Toggle Toolbar
🌐 Multi-Language Support
Supports 14 languages including English, Norwegian, German, Spanish, and Chinese.
Code