A lightweight, feature-rich browser-based code editor with syntax highlighting, auto-save, and real-time statistics. No installation required - runs entirely in your browser!
- Syntax Highlighting - 10 language modes (JavaScript, Python, HTML, CSS, SQL, Shell, C/C++, XML, Markdown, Plain Text)
- Line Numbers - Easy code navigation
- Auto-closing Brackets - Bracket pairing for faster coding
- Line Wrapping - Toggle between wrapped and unwrapped text
- Undo/Redo - Full undo/redo support with keyboard shortcuts
- Paste - Paste code directly from your clipboard
- Copy - Copy all code to clipboard with one click
- Download - Save your code as a
.txtfile - Search - Find text within your code
- Font Size - Adjust text size (10-24px)
- Statistics - View real-time code metrics
- Undo/Redo - Navigate through edit history
- Clear - Clear all code (with confirmation)
- Line Count - Total number of lines
- Word Count - Total words in code
- Character Count - Total characters (excluding whitespace)
- Read Time - Estimated reading time
- Cursor Position - Real-time line and column indicator
- Auto-Save - Automatically saves your code to browser storage every second
- LocalStorage - Persists code even after closing the browser
- Visual Feedback - Save indicator shows "Saving..." then "✓ Saved"
- Dark Theme (Dracula) - Easy on the eyes, perfect for long coding sessions
- Responsive Design - Works on desktop browsers
- Real-time Status Bar - See stats, mode, and cursor position at a glance
- Success Messages - Toast notifications for copy/paste/download actions
- Smooth Animations - Polished transitions and visual feedback
Just click and use - no setup needed!
https://roxoi.github.io/reditor
Paste this directly into your browser address bar:
data:text/html,<full-html-content>
- Download
index.html - Open the file in any modern web browser
- Start coding!
Write Code → Start typing or paste code
Change Language → Select from Language dropdown
Adjust Font Size → Use the Font slider (10-24px)
Search Code → Click Search, type text, click Next
Ctrl/Cmd + Z → Undo
Ctrl/Cmd + Shift + Z → Redo
Ctrl/Cmd + / → Toggle comment
Tab → Indent
Shift + Tab → Unindent
Auto-Save → Automatic every second
Copy Code → 📋 Copy button
Download Code → ⬇️ Download button
Paste Code → 📋 Paste button
- Go to github.com/new
- Repository name: editor (important for the URL structure)
- Add description: "Enhanced Dark Code Editor"
- Click "Create repository"
# Clone the repository
git clone https://github.com/YOUR-USERNAME/editor.git
# Navigate to folder
cd editor
# Create index.html (copy the editor code)
# Copy the enhanced-code-editor.html content to index.html# Add files
git add .
# Commit
git commit -m "Initial commit: Add enhanced code editor"
# Push to GitHub
git push -u origin main- Go to your repository settings
- Scroll down to GitHub Pages
- Select main branch as source
- Click Save
- Wait 1-2 minutes for deployment
Your editor will be available at:
https://YOUR-USERNAME.github.io/editor
Example:
https://roxoi.github.io/editor
editor/
├── index.html # Main editor file
├── README.md # This file
├── LICENSE # MIT License
└── .gitignore # Git ignore file
- CodeMirror 5.65.16 - Syntax highlighting & editing
- Dracula Theme - Dark color scheme
- Vanilla JavaScript - No dependencies required
- HTML5 & CSS3 - Modern web standards
| Language | Code |
|---|---|
| JavaScript | javascript |
| HTML | htmlmixed |
| CSS | css |
| Python | python |
| XML/SVG | xml |
| Markdown | markdown |
| SQL | sql |
| Shell/Bash | shell |
| C/C++/Java | clike |
| Plain Text | null |
- Code Persistence - Your code is saved automatically. Refresh the page and it's still there!
- Fast Copying - Use Copy button to quickly share code snippets
- Language Switching - Change language on the fly - syntax highlighting updates instantly
- Search Feature - Use Ctrl+F to search within your code
- Font Adjustment - Increase font size for presentations or reduce for more content
Ctrl+Z- UndoCtrl+Shift+Z- RedoCtrl+A- Select allTab- IndentShift+Tab- Dedent
- Quick code snippets
- Live coding tutorials
- Temporary code storage
- Learning programming
- Code review & sharing
- Take code notes
- Practice coding problems
| Browser | Support |
|---|---|
| Chrome/Edge | Full |
| Firefox | Full |
| Safari | Full |
| Mobile Browsers | Partial |
This project is licensed under the MIT License - see the LICENSE file for details.
Found a bug or have a feature request? Feel free to open an issue or submit a pull request!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Email - roxoi0x01@gmail.com
- GitHub - @roxoi
- Portfolio - roxoi.vercel.app
- CodeMirror - For the amazing code editor library
- Dracula Theme - For the beautiful dark theme
- CDN Providers - CloudFlare, JSDelivr for reliable CDN hosting
- Lines of Code: ~500
- Supported Languages: 10
- Load Time: < 2 seconds
- ile Size: ~25KB (minified)
Made with ❤️ by Roxoi
"Code with passion, ship with purpose."