Deployed URL - https://assignment-code-editor.vercel.app/
Develop a simple web-based code editor using React, with syntax highlighting capabilities provided by PrismJS.
- Text Input: Users can input and edit code in a textarea element.
- Syntax Highlighting: The inputted code will be automatically highlighted using PrismJS.
- Language Support: Initial support for JavaScript with potential to extend to other languages.
- Frontend Framework: React
- Syntax Highlighting: PrismJS and prism-react-renderer
- Styling: CSS
- CodeEditor Component:
- Handles user input via a textarea.
- Displays syntax-highlighted code using PrismJS.
-
Clone the repository:
git clone https://github.com/warisamir/assignment-code-editor.git
-
Navigate to the project's directory:
cd assignment-code-editor
-
Install dependencies:
npm install
-
To run the project locally:
npm run dev