An open API service indexing awesome lists of open source software.

https://github.com/hari7261/codecanvas

A sleek and responsive web-based code editor supporting JavaScript and Markdown, featuring dark mode, file management, and real-time editing. Perfect for developers looking for a lightweight, modern coding experience!
https://github.com/hari7261/codecanvas

codecanvas css fullstack hari7261 html js project-repository reactjs text-editor wordpad

Last synced: 3 months ago
JSON representation

A sleek and responsive web-based code editor supporting JavaScript and Markdown, featuring dark mode, file management, and real-time editing. Perfect for developers looking for a lightweight, modern coding experience!

Awesome Lists containing this project

README

        

# 🎨 CodeCanvas

**CodeCanvas** is a modern, responsive, and user-friendly code editor built with React, TailwindCSS, and CodeMirror. Designed to support JavaScript and Markdown, it offers a sleek and intuitive interface with dark mode and file management functionalities. This project is ideal for developers seeking a lightweight and customizable coding experience directly in their browser.

## ✨ Features

| Feature | Description |
|------------------------|-----------------------------------------------------------------------------|
| πŸ“± **Responsive Design** | Fully responsive layout for a seamless experience on desktop, tablet, and mobile devices. |
| πŸŒ— **Dark Mode** | Toggle between light and dark themes for optimal comfort and usability. |
| πŸ’» **Language Support** | Easily switch between JavaScript and Markdown editing modes. |
| πŸ“ **File Operations** | Import, export, and save files locally for streamlined file management. |
| ⌨️ **Keyboard Shortcuts**| Save your work quickly with `Ctrl/Cmd + S`. |
| πŸ› οΈ **Elegant Toolbar** | Classic, accessible toolbar with intuitive buttons for core actions. |

## 🌐 Demo

Check out the live demo of CodeCanvas [here](#) (Add your deployment link).

## πŸ”§ Technologies Used

- **React**: For building the user interface components.
- **TailwindCSS**: For responsive and modern styling.
- **CodeMirror**: For a powerful, extensible code editor.
- **Lucide Icons**: For clean and lightweight icons in the toolbar.

## πŸš€ Installation

Follow these steps to get started with CodeCanvas:

1. Clone the repository:
```bash
git clone https://github.com/your-username/codecanvas.git
```

2. Navigate to the project directory:
```bash
cd codecanvas
```

3. Install dependencies:
```bash
npm install
```

4. Start the development server:
```bash
npm start
```

5. Open your browser and navigate to `http://localhost:3000` to view the application.

## πŸ“ Usage

1. Use the **Toolbar** at the top of the editor to:
- 🌐 Switch between JavaScript and Markdown modes.
- πŸŒ— Toggle between light and dark themes.
- πŸ’Ύ Save your work locally with a single click.
- πŸ“€ Import and πŸ“₯ export files seamlessly.

2. Start coding in the editor area. Your changes will automatically update in real-time.

## πŸ“‚ Folder Structure

The project has the following structure:

```
codecanvas/
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”œβ”€β”€ Editor.tsx # Editor component
β”‚ β”‚ β”œβ”€β”€ Toolbar.tsx # Toolbar component
β”‚ β”œβ”€β”€ App.tsx # Main app component
β”‚ β”œβ”€β”€ index.tsx # Entry point
β”‚ └── styles/ # TailwindCSS configuration
β”œβ”€β”€ public/ # Public assets
β”œβ”€β”€ package.json # Project dependencies
└── README.md # Project documentation
```

## πŸ“‚ File Management

| Action | Description |
|---------------|---------------------------------------------|
| πŸ’Ύ **Save** | Click the save button or use `Ctrl/Cmd + S` to store your work in the browser’s local storage. |
| πŸ“€ **Export** | Download your code as a `.js` or `.md` file. |
| πŸ“₯ **Import** | Upload `.js`, `.md`, or `.txt` files to edit directly in the browser. |

## ⌨️ Key Commands

- **Save**: `Ctrl/Cmd + S` to quickly save your code.
- **Import File**: Use the file upload button in the toolbar.
- **Export File**: Use the download button to export your work.

## πŸ“œ License

This project is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this software as per the license terms.

---

πŸš€ **Enjoy using CodeCanvas!** If you have any questions or issues, feel free to reach out.