This project is an online code editor that allows users to write and run Python and JavaScript code within a web browser. It utilizes technologies such as Python, JavaScript, HTML, and CSS to provide a user-friendly coding environment.
- CodeMirror integration for code editing with syntax highlighting and line numbers.
- Ability to run Python and JavaScript code snippets.
- Real-time display of code output and errors.
- Support for multiple programming languages within the same interface.
- Open the code editor in your browser.
- Write Python or JavaScript code in the editor.
- Click the "Run" button to execute the code.
- The output or any errors will be displayed in the output area.
- Python
- JavaScript
- HTML
- CSS
- Flask (Python web framework)
- CodeMirror (Code editor library)
To run this project locally, follow these steps:
Before you begin, make sure you have the following software installed on your computer:
- Python: You can download it from python.org.
- Clone the repository to your local machine using Git:
git clone https://github.com/inerttila/online-code-editor.git
Navigate to the project's directory:
cd online-code-editor
Create a virtual environment (optional but recommended):
python -m venv venv
On Windows:
venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
Install the required Python packages:
pip install -r requirements.txt
Start the Flask application:
python server.py
Open your web browser and go to http://localhost:5500.
You can now use the online code editor to write and execute Python and JavaScript code within your browser.