DevComp is a lightweight, browser-based code editor that supports HTML, CSS, and JavaScript development with real-time preview capabilities.
- 🎨 Syntax highlighting for HTML, CSS, and JavaScript
- 👀 Real-time preview of your code
- 📱 Responsive design that works on desktop and mobile
- 🎯 Live code execution
- 💾 Project download functionality
- 🔧 Customizable interface with font size controls
- 📺 Full-screen mode
- 🌗 Dark theme support
The initial loading screen of DevComp
An example of a webpage created using DevComp
Demonstration of a working code example in DevComp
- CodeMirror for code editing
- JSZip for project download functionality
- FileSaver.js for handling file downloads
- Include the required dependencies:
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,500,600,700">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/theme/dracula.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
- Include the project files:
index.html
style.css
editor.js
- Open
index.html
in your web browser - Write your HTML, CSS, and JavaScript code in the respective panels
- Click the "Run" button to see the results in the preview panel
- Use the font size controls to adjust the editor text size
- Toggle full-screen mode for a better coding experience
- Download your project as a ZIP file containing all necessary files
- Font Size: Use the A+ and A- buttons to adjust the editor font size
- Full Screen: Click the expand icon to toggle full-screen mode
- Run Code: Click the play button to execute and preview your code
DevComp is built with accessibility in mind:
- ARIA labels for all interactive elements
- Keyboard navigation support
- Screen reader friendly interface
- High contrast theme
DevComp works in all modern browsers including:
- Chrome
- Firefox
- Safari
- Edge
This project is open source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.