| 1 |
# CodeMirror |
| 2 |
|
| 3 |
[](https://github.com/codemirror/codemirror5/actions) |
| 4 |
|
| 5 |
CodeMirror is a versatile text editor implemented in JavaScript for |
| 6 |
the browser. It is specialized for editing code, and comes with over |
| 7 |
100 language modes and various addons that implement more advanced |
| 8 |
editing functionality. Every language comes with fully-featured code |
| 9 |
and syntax highlighting to help with reading and editing complex code. |
| 10 |
|
| 11 |
A rich programming API and a CSS theming system are available for |
| 12 |
customizing CodeMirror to fit your application, and extending it with |
| 13 |
new functionality. |
| 14 |
|
| 15 |
You can find more information (and the |
| 16 |
[manual](https://codemirror.net/5/doc/manual.html)) on the [project |
| 17 |
page](https://codemirror.net/5/). For questions and discussion, use the |
| 18 |
[discussion forum](https://discuss.codemirror.net/). |
| 19 |
|
| 20 |
See |
| 21 |
[CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md) |
| 22 |
for contributing guidelines. |
| 23 |
|
| 24 |
The CodeMirror community aims to be welcoming to everybody. We use the |
| 25 |
[Contributor Covenant |
| 26 |
(1.1)](http://contributor-covenant.org/version/1/1/0/) as our code of |
| 27 |
conduct. |
| 28 |
|
| 29 |
### Installation |
| 30 |
|
| 31 |
Either get the [zip file](https://codemirror.net/5/codemirror.zip) with |
| 32 |
the latest version, or make sure you have [Node](https://nodejs.org/) |
| 33 |
installed and run: |
| 34 |
|
| 35 |
npm install codemirror@5 |
| 36 |
|
| 37 |
**NOTE**: This is the source repository for the library, and not the |
| 38 |
distribution channel. Cloning it is not the recommended way to install |
| 39 |
the library, and will in fact not work unless you also run the build |
| 40 |
step. |
| 41 |
|
| 42 |
### Quickstart |
| 43 |
|
| 44 |
To build the project, make sure you have Node.js installed (at least version 6) |
| 45 |
and then `npm install`. To run, just open `index.html` in your |
| 46 |
browser (you don't need to run a webserver). Run the tests with `npm test`. |