Skip to content

This is a custom code editor built with React and Monaco Editor. It allows users to write and run JavaScript code directly within the browser.

License

Notifications You must be signed in to change notification settings

SandeepVashishtha/Code-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

78 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Code Editor

React Monaco Editor JavaScript Python

License: MIT PRs Welcome Hacktoberfest

A modern, interactive code editor built with React and Monaco Editor that allows users to write and execute JavaScript and Python code directly in the browser! ๐ŸŽฏ

โœจ Features

  • ๐ŸŸจ JavaScript Support: Execute JavaScript code instantly in the browser
  • ๐Ÿ Python Support: Run Python code using Pyodide (no server required!)
  • ๐ŸŽจ Monaco Editor: Professional-grade code editor with IntelliSense
  • ๐ŸŒ™ Dark Theme: Easy on the eyes with syntax highlighting
  • ๐Ÿ“ฑ Responsive Design: Works seamlessly on desktop and mobile devices
  • โšก Real-time Execution: See results immediately in the output console
  • ๐Ÿ› ๏ธ Error Handling: Clear error messages and debugging information
  • ๐Ÿš€ No Setup Required: Start coding immediately - no installation needed!

Installation

  1. Clone the repository:

    git clone https://github.com/sandeepvashishtha/Code-Editor.git
    cd Code-Editor
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start
  4. Open your browser: Visit http://localhost:3000 and start coding! ๐ŸŽ‰

๐ŸŽฎ Usage

JavaScript

  1. Select JavaScript from the language dropdown
  2. Write your JavaScript code in the editor
  3. Click โ–ถ๏ธ Run Code to execute
  4. View the output in the console panel
// Example: Try this code!
function fibonacci(n) {
  if (n <= 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
}

console.log(`Fibonacci(10) = ${fibonacci(10)}`);

Python

  1. Select Python from the language dropdown (wait for Python environment to load)
  2. Write your Python code in the editor
  3. Click โ–ถ๏ธ Run Code to execute
  4. View the output in the console panel
# Example: Try this code!
import math

def calculate_circle_area(radius):
    return math.pi * radius ** 2

radius = 5
area = calculate_circle_area(radius)
print(f"Circle with radius {radius} has area: {area:.2f}")

๐Ÿ› ๏ธ Built With

  • React 18 - Modern JavaScript library for building user interfaces
  • Monaco Editor - The code editor that powers VS Code
  • Pyodide - Python runtime for the browser
  • Create React App - Tool for setting up modern React applications

๐Ÿค Contributing

We welcome contributions from developers of all skill levels! ๐ŸŒŸ

Quick Start for Contributors

  1. Check out our Contributing Guide ๐Ÿ“–
  2. Look for issues labeled good first issue or hacktoberfest
  3. Fork the repository and create your feature branch
  4. Make your changes and test thoroughly
  5. Submit a pull request with a clear description

๐ŸŽƒ Hacktoberfest 2024

This project participates in Hacktoberfest! Here are some great ways to contribute:

  • ๐Ÿ› Fix bugs - Help improve stability and user experience
  • โœจ Add features - Implement new programming language support
  • ๐Ÿ“š Improve docs - Make the project more accessible
  • ๐ŸŽจ Enhance UI - Improve the visual design and user experience
  • ๐Ÿงช Add tests - Help ensure code quality

Check out our Hacktoberfest issues to get started!

๐Ÿš€ Roadmap

  • ๐ŸŸฆ TypeScript Support - Add TypeScript language support
  • ๐ŸŒ HTML/CSS/JS Playground - Multi-file web development environment
  • ๐Ÿ’พ Local Storage - Save and restore code sessions
  • ๐Ÿ” Search & Replace - Advanced find and replace functionality
  • ๐ŸŽจ Multiple Themes - Light theme and custom theme support
  • ๐Ÿ“ File Management - Import/export functionality
  • ๐Ÿ”— Share Code - Generate shareable links for code snippets
  • ๐Ÿ› Debugging Tools - Integrated debugging capabilities

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“Š Project Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests


โญ If you find this project helpful, please give it a star! โญ

Made with โค๏ธ for the developer community

About

This is a custom code editor built with React and Monaco Editor. It allows users to write and run JavaScript code directly within the browser.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8