Skip to content
Vader-codesPublic

About

Coding a code editor in HTML, CSS and JavaScript

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

🚀 CodeLab – Browser-Based HTML, CSS & JavaScript Playground

License: MIT Built With Responsive Status

CodeLab is a lightweight browser-based code editor for practicing front-end development. Write HTML, CSS, and JavaScript in separate editors, see the output instantly, and save your work—all without installing anything.


📖 About

CodeLab is a web-based coding playground built with HTML, CSS, and JavaScript using the Ace Editor. It provides an interactive environment where users can experiment with front-end code and instantly preview the results.

The project is completely client-side, making it easy to run locally or host on any static hosting platform. Whether you're learning web development or demonstrating concepts in a classroom, CodeLab offers a simple and efficient coding experience.


✨ Features

  • 🎨 Separate editors for HTML, CSS, and JavaScript
  • ⚡ Instant live preview inside a sandboxed iframe
  • 📝 Ace Editor with syntax highlighting and auto-indentation
  • 💾 Save projects as JSON files
  • 📂 Load previously saved projects
  • 🔄 Automatic project recovery using localStorage
  • ⌨️ Keyboard shortcuts
    • Ctrl/Cmd + Enter → Run code
    • Ctrl/Cmd + S → Save project
  • ✅ Built-in JavaScript validation panel
  • ♿ Responsive and keyboard-accessible interface
  • 🌐 Fully client-side application (No backend required)
  • 📦 Works offline after loading dependencies

🎯 Who Can Use CodeLab?

This project is suitable for:

  • Students learning HTML, CSS, and JavaScript
  • Beginners practicing front-end development
  • Teachers conducting coding demonstrations
  • Coding bootcamps and workshops
  • Anyone looking for a lightweight online playground

🛠️ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)
  • Ace Editor
  • Local Storage API
  • JSON File Handling

📚 What You'll Learn

Working on or exploring this project helps you understand:

  • Building a multi-tab code editor
  • Integrating the Ace Editor
  • Rendering live previews securely using iframes
  • Managing browser storage with Local Storage
  • Exporting and importing project files
  • Implementing keyboard shortcuts
  • Creating responsive and accessible web interfaces

📂 Project Structure

CodeLab/
├── index.html
├── style.css
├── script.js
└── README.md

🚀 Getting Started

Clone the repository

git clone https://github.com/Vader-codes/CodeLab.git

Navigate to the project

cd CodeLab

Run the project

Simply open index.html in your browser.

No installation or backend setup is required.


⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl / Cmd + Enter Run the code
Ctrl / Cmd + S Save project

📦 Future Improvements

  • Dark/Light theme toggle
  • Multiple file support
  • Console output panel
  • Auto-format code
  • Search and replace
  • Project templates
  • Additional language support

📄 License

This project is licensed under the MIT License.


🤝 Contributing

Contributions are welcome!

If you have ideas for improvements or discover a bug, feel free to open an issue or submit a pull request.


⭐ Show Your Support

If you found this project helpful, consider giving it a ⭐ on GitHub.

It helps others discover the project and motivates future improvements.

About

Coding a code editor in HTML, CSS and JavaScript

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages