A lightweight, real-time code editor that allows you to write and preview HTML, CSS, and JavaScript code instantly in your browser. Perfect for quick prototyping and testing code snippets.
- Live Preview: See your code changes in real-time
- Multi-language Support: Write HTML, CSS, and JavaScript simultaneously
- Clean Interface: Simple and intuitive user interface
- Responsive Design: Works on desktop and mobile devices
mini-code-editor/
├── index.html # Main HTML file
├── styles.css # CSS styling
├── script.js # JavaScript functionality
├── README.md # Documentation
└── LICENSE # MIT License
-
Clone the repository:
git clone https://github.com/Anon23261/mini-code-editor.git
-
Open
index.html
in your web browser
That's it! No build process or dependencies required.
- Write HTML code in the HTML section
- Add CSS styles in the CSS section
- Include JavaScript in the JavaScript section
- Watch your code come to life in the preview window
Try this simple example to get started:
HTML:
<div class="container">
<h1>Hello World!</h1>
<button id="btn">Click me</button>
</div>
CSS:
.container {
text-align: center;
padding: 20px;
}
button {
padding: 10px 20px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
JavaScript:
document.getElementById('btn').addEventListener('click', () => {
alert('Button clicked!');
});
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with vanilla JavaScript
- Inspired by online code editors like CodePen and JSFiddle