Documentation

Everything you need to know about Benzo Code — from your first keystroke to running 35+ languages and exporting projects.

Introduction

Benzo Code is a free, browser-based IDE that runs entirely in your browser. It uses Monaco (the editor engine behind VS Code) for editing, executes multi-language code through a sandboxed Piston runtime, and saves everything locally — no accounts, no setup, no tracking.

Ready to start? Just open the editor. There's a working demo project loaded — edit it, break it, save it.

Your first project

When you open the editor for the first time, you'll see a demo project with three files:

  • index.html — the markup
  • style.css — the styling
  • script.js — the interactivity

Edit any of them. The preview panel on the right updates automatically as you type.

Save your work

Press Ctrl + S (or ⌘ + S on Mac) to save. Your project is stored in your browser's local storage — it will be exactly where you left it when you come back.

Interface tour

The editor has three main panels:

  • File explorer (left) — all your files, folders, plus create/delete actions.
  • Editor (center) — Monaco with tabs across the top.
  • Preview / Console / Input (right) — toggle between live rendering, terminal output, and stdin.

On mobile, tap the ☰ button to open the file explorer, and the ▤ button to open the preview panel. Both slide in from the edges as overlays.

Files, folders & tabs

Click 📄+ to create a new file, or 📁+ to create a new folder. Benzo Code auto-detects the language from the file extension — so data.json becomes JSON, main.py becomes Python.

Hover over any file in the sidebar to rename (✎) or delete (✕) it. Hover over a folder to create a file directly inside it.

Import & Export

You can import entire projects seamlessly. Click the Import dropdown in the top bar, or simply drag and drop a folder into the editor window.

  • Open Single File: Load a single .html, .py, .js, etc., into a fresh project.
  • Import Project (.json): Load a previously exported JSON backup.
  • Import Folder: Select a folder from your computer. We will recursively read all text files, rebuild the directory tree, and automatically resolve relative paths for the preview.
Note: Binary files (images, fonts, .exe) are skipped automatically to save space. The editor focuses on code.

Standard Input (stdin)

Running interactive scripts (e.g., Python's input() or C++'s cin) is fully supported.

Switch to the Input tab in the right panel, type the values you want to pass, and click Run. The editor will feed this text directly into the program's standard input stream.

Keyboard shortcuts

  • Ctrl + S — Save project
  • Ctrl + Enter — Run current file
  • Ctrl + / — Toggle line comment
  • Alt + ↑ / ↓ — Move line
  • Ctrl + D — Select next occurrence
  • Ctrl + Z — Undo (Monaco native)

Formatting code

Click the ✨ Format button to auto-format the current file with Prettier. Supported: HTML, CSS, JavaScript, TypeScript, JSON, and Markdown.

Light & Dark mode

The site default is the premium black/silver dark mode. Click the ☀ / ☾ icon to toggle light mode. This changes the entire site, including the editor shell and Monaco.

Your preference is saved in localStorage under the key benzo-code.theme and is respected across all pages (Home, Learn, Docs, Editor).

Live preview

The preview panel renders your HTML/CSS/JS in real time. When you edit a file, the preview refreshes automatically after a 350ms debounce.

The preview runs in a sandboxed iframe. If you import a folder with nested paths (like src/css/style.css), the preview engine automatically resolves those relative links.

Click the ⛶ fullscreen icon in the preview tab to expand the preview to take up the entire screen. Click it again (or press Escape) to exit.

Console

The console captures logs, warnings, errors, and unhandled promise rejections from the preview iframe. It also displays the output from server-side language runs (like Python, C++, Swift).

Switch to the Console tab to see it. Use 🗑 to clear.

Supported languages

Fully supported — executed on the server via Piston:

  • Python 3, JavaScript, TypeScript
  • C, C++, C#, Java
  • Go, Rust, Swift, Kotlin, Dart
  • PHP, Ruby, R, Scala, Perl
  • Lua, Elixir, Julia, Clojure
  • Haskell, F#, Groovy, Pascal, Prolog
  • OCaml, D, Zig, COBOL, Crystal
  • Erlang, Fortran, Nim, Racket, Raku
  • SQLite (SQL), Bash (shell)

Editor-only (syntax highlighting, no execution):

  • HTML, CSS, Markdown, YAML, JSON

Share links

Click 🔗 Share to generate a URL containing your entire project encoded in the URL hash. Anyone with the link gets a copy of your project loaded instantly.

Note: Share links can be long — they encode every file. For big projects, use Download ZIP instead.

Download ZIP / HTML

Click ZIP to download your entire project (including folders) as a compressed file.

Click HTML to bundle your index.html, style.css, and script.js into a single, self-contained HTML file.

Troubleshooting

Preview is blank

Make sure your project has an index.html file, or that your HTML contains content inside <body>.

Code won't run

Only certain languages can execute server-side (see Supported languages). HTML/CSS/JS use the preview panel, not the Run button.

Lost my project

Everything is stored in your browser's local storage. Clearing site data will delete your projects. Use Download regularly for anything you care about.