A modern, feature-rich online code editor inspired by CodePen, built with cutting-edge web technologies. Write, edit, and preview your HTML, CSS, and JavaScript code in real-time with a sleek, responsive interface.
- π¨ Real-time Preview - See your code changes instantly
- π Dark/Light Theme - Toggle between themes for comfortable coding
- π± Responsive Design - Works seamlessly on desktop, tablet, and mobile
- π― Multi-language Support - HTML, CSS, and JavaScript editing
- πΎ Auto-save - Never lose your work
- π Syntax Highlighting - Beautiful code highlighting for better readability
- β‘ Fast Performance - Built with Next.js for optimal speed
- π Modern UI - Clean, intuitive interface with smooth animations
- Framework: Next.js 14 - React framework for production
- Styling: Tailwind CSS - Utility-first CSS framework
- UI Components: shadcn/ui - Beautiful, accessible components
- Language: TypeScript - Type-safe JavaScript
- Deployment: Vercel - Seamless deployment and hosting
- Node.js 18+ and npm/yarn/pnpm
- Git
-
Clone the repository
git clone https://github.com/yourusername/ide-code-editor.git cd ide-code-editor -
Install dependencies
npm install
-
Start the development server
npm run dev
4. **Open your browser**
## π― Core Components
### Editor Component
- Multi-tab interface for HTML, CSS, and JavaScript
- Syntax highlighting and auto-completion
- Responsive layout with resizable panels
### Preview Component
- Real-time rendering of code changes
- Responsive preview modes
- Error handling and display
### UI Components
- Modern button designs
- Dropdown menus
- Theme toggle
- Mobile-responsive navigation
## π Features in Detail
### π¨ Code Editor
- **Syntax Highlighting**: Beautiful syntax highlighting for HTML, CSS, and JavaScript
- **Auto-completion**: Intelligent code suggestions
- **Error Detection**: Real-time error highlighting
- **Multi-tab Interface**: Switch between HTML, CSS, and JS tabs seamlessly
### π Live Preview
- **Instant Updates**: See changes as you type
- **Mobile Preview**: Test responsive designs
- **Console Output**: View JavaScript console logs
- **Error Handling**: Graceful error display
### π User Experience
- **Dark/Light Mode**: Toggle between themes
- **Responsive Design**: Works on all screen sizes
- **Smooth Animations**: Polished interactions
- **Keyboard Shortcuts**: Power-user features
## π± Browser Support
- β
Chrome (latest)
- β
Firefox (latest)
- β
Safari (latest)
- β
Edge (latest)
- β
Mobile browsers
## π§ Configuration
### Tailwind CSS
Customize your design system in `tailwind.config.js`:
```javascript
module.exports = {
// Your custom configuration
theme: {
extend: {
colors: {
// Custom colors
}
}
}
}
Configure Next.js settings in next.config.js:
/** @type {import('next').NextConfig} */
const nextConfig = {
// Your configuration
}Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Inspired by CodePen
- Built with shadcn/ui
- Powered by Next.js
- Styled with Tailwind CSS
- Developer: Harshit
- Email: [[email protected]]
- LinkedIn: [www.linkedin.com/in/harshit-bhalani]
- Live Demo: ide-code.vercel.app
- Repository: GitHub Repository
- Issues: Report Issues
β Star this repository if you found it helpful!
Made with β€οΈ by Harshit