This is a sample React project that demonstrates how to implement a code editor using CodeMirror in a React application. The code editor supports syntax highlighting and provides a versatile editing experience.
- Syntax highlighting for various programming languages.
- Support for code folding, code completion, and multiple cursors.
- Integration with Chakra-UI component library for a visually appealing UI.
- Debounced API call to update the backend, optimizing performance.
- Node.js and npm (Node Package Manager) installed on your machine.
-
Clone this repository to your local machine or download the source code.
-
Open a terminal and navigate to the project's root directory.
-
Install the project dependencies by running the following command:
yarn install
-
Start the development server by running the following command:
yarn start
-
Open your web browser and visit
http://localhost:3000
to access the application. -
The code editor will be displayed, allowing you to write and edit code or markdown text.
Contributions to this project are welcome! If you find any issues or want to add new features, feel free to submit a pull request.
This project is licensed under the MIT License. Please see the LICENSE file for more details.