Open any local source file in your browser — rendered like VS Code.
No server. No upload. No internet. Just file:// done right.
🌐 lalit-rajpurohit.github.io/Code-Previewer
$ code-previewer --features
✓ syntax highlighting ....... 25+ languages, VS Code-grade colors
✓ themes .................... ☀ Light · 🌙 One Dark · ☁ GitHub Light · 🧛 Dracula
✓ compare mode .............. side-by-side diff of any two files
✓ markdown preview .......... live split view · draggable divider · tables
✓ search .................... Ctrl+F panel — regex, match case, by word
✓ editor extras ............. line numbers · code folding · word wrap
✓ file actions .............. copy · download · reload from disk · fullscreen
✓ privacy ................... zero network calls — files never leave your machine
$ _╭──────────────┬──────────────┬──────────────┬──────────────┬──────────────╮
│ Python │ JavaScript │ TypeScript │ JSON │ YAML │
│ HTML │ CSS │ Java │ Go │ Rust │
│ C / C++ │ SQL │ XML / SVG │ Markdown │ Shell │
│ Dockerfile │ TOML │ INI / .env │ CSV / logs │ + more... │
╰──────────────┴──────────────┴──────────────┴──────────────┴──────────────╯
Unknown-but-texty extensions fall back to a clean plain-text view — so any code file opens.
| Theme | Vibe | |
|---|---|---|
| ☀ | Light | clean default, easy on projectors |
| 🌙 | One Dark | the Atom classic |
| ☁ | GitHub Light | familiar PR-review feel |
| 🧛 | Dracula | because obviously |
One click cycles through all four — your pick is remembered across sessions.
$ how-to-install
[1] Get it from the Chrome Web Store or Edge Add-ons ──▶ buttons above ☝
[2] Extension Details → ✓ "Allow access to file URLs" (one-time, required)
[3] Open any local file:
file:///C:/projects/main.py ← boom. syntax highlighted.| Keys | Action |
|---|---|
| Ctrl + F | Search within file |
| Enter / Shift + Enter | Next / previous match |
| Alt + Z | Toggle word wrap — in compare mode, only the pane your cursor is in |
| Esc | Close search panel |
| ▸ gutter click | Fold / unfold a code block |
+ everything runs locally in your browser
+ the only stored setting is your theme preference
- no analytics
- no telemetry
- no network requests
- no accounts, ever- Syntax highlighting — 25+ languages
- 4 themes with persistence
- Side-by-side compare mode with per-pane word wrap
- Markdown preview with resizable split & tables
- Search, folding, copy, download, reload, fullscreen
- 🚧 Chrome Web Store listing — in review
- 🚧 Edge Add-ons listing — in review
- Minimap
- More themes
Coming soon! ⏳ The extension is currently in review on the Chrome Web Store and Microsoft Edge Add-ons. The buttons at the top go live the moment review completes — watch this repo to get notified.
If this looks useful, drop a ⭐ — it genuinely helps.
Rendered by Code Previewer · MIT License · live site




