Skip to content

Lalit-Rajpurohit/Code-Previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Previewer — code view, compare files, markdown preview



Open any local source file in your browser — rendered like VS Code.
No server. No upload. No internet. Just file:// done right.


Manifest V3 TypeScript Offline

Version Size Privacy License


Chrome Web Store — Coming Soon     Edge Add-ons — Coming Soon

🌐 lalit-rajpurohit.github.io/Code-Previewer



Live typing demo — code renders itself

📸 Screenshots

One Dark · Python Compare mode · Java
Markdown preview Search · JavaScript Dracula · JSON

$ code-previewer --features

$ 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

$ _

🗂 Language support

╭──────────────┬──────────────┬──────────────┬──────────────┬──────────────╮
│  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.

🎨 Themes

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.

📦 Install

$ 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.

⌨️ Shortcuts

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

🔒 Privacy

+ everything runs locally in your browser
+ the only stored setting is your theme preference
- no analytics
- no telemetry
- no network requests
- no accounts, ever

🧭 Roadmap

  • 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

🚧 Store listings

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

About

Open any local source file in your browser — rendered like VS Code. No server. No upload. No internet. Just file:// done right.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages