- Created CodeEditor using Textarea & Prism-react-renderer Library for syntax Hightlighting
- Wrote Test Cases to cover the scenario
- Proper naming conventions for the components & folder Structure
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have Node.js and npm installed. You can download them from Node.js.
-
Clone the repository
git clone https://github.com/NileshDeshmukh09/Code-Editor.git
-
Navigate to the project directory
cd Code-Editor
-
Install dependencies
npm install
-
Start the development server
npm start
-
Testing This project uses
@testing-library/react
for testing. To run tests:npm test
- Verifies if the main App component renders correctly.
- Updates
sourceCode
state when typing - Prevents text selection within the editor
- Applies syntax highlighting and validates highlighted tokens