Sometimes you need to read or change a script on a machine with no editor installed. This one colors the code, numbers the lines, keeps your indentation when you press Enter, and indents or outdents a selection with Tab and Shift+Tab.
It detects the language by itself or lets you pick: JavaScript, TypeScript, Python, HTML, CSS, JSON, PHP, Java, C, C++, C#, Go, Rust, Ruby, SQL, shell, YAML and Markdown. Format re-indents JavaScript, HTML, CSS and JSON. You can also save the code as a picture for a slide or a post.
How to use the Code Editor tool
- Open a file or paste code.
- Edit it; choose the language if the guess is wrong.
- Download the file, copy the code, or save it as a picture.
Popular uses
- Quick edits to a config or script on a locked-down computer
- Reading a code file sent by email
- Making a clean screenshot of a snippet
Tips for the best result
- The dark theme is easier on the eyes for long sessions; untick it for printing.
- JSON that fails to format has a syntax error; the message says where.
Quick facts
| Price | Free |
|---|---|
| Works with | JS, PY, HTML, CSS, JSON and more |
| Where it runs | In your browser, on your device |
| Account | Not needed |