• Stars
    star
    26,728
  • Rank 748 (Top 0.02 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 14 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

In-browser code editor (version 5, legacy)

CodeMirror

Build Status NPM version

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with over 100 language modes and various addons that implement more advanced editing functionality. Every language comes with fully-featured code and syntax highlighting to help with reading and editing complex code.

A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality.

You can find more information (and the manual) on the project page. For questions and discussion, use the discussion forum.

See CONTRIBUTING.md for contributing guidelines.

The CodeMirror community aims to be welcoming to everybody. We use the Contributor Covenant (1.1) as our code of conduct.

Installation

Either get the zip file with the latest version, or make sure you have Node installed and run:

npm install codemirror

NOTE: This is the source repository for the library, and not the distribution channel. Cloning it is not the recommended way to install the library, and will in fact not work unless you also run the build step.

Quickstart

To build the project, make sure you have Node.js installed (at least version 6) and then npm install. To run, just open index.html in your browser (you don't need to run a webserver). Run the tests with npm test.

More Repositories

1

dev

Development repository for the CodeMirror editor project
JavaScript
5,631
star
2

CodeMirror-v1

An editable-iframe based code editor in JavaScript. See https://github.com/marijnh/CodeMirror for the currently maintained version
JavaScript
362
star
3

view

DOM view component for the CodeMirror code editor
TypeScript
113
star
4

lang-sql

SQL language support for the CodeMirror code editor
TypeScript
72
star
5

lang-markdown

Markdown language support for the CodeMirror code editor
TypeScript
71
star
6

legacy-modes

Collection of ported legacy language modes for the CodeMirror code editor
JavaScript
70
star
7

basic-setup

Example configuration for the CodeMirror code editor
TypeScript
69
star
8

lang-example

Example/template repository for building a language package
JavaScript
67
star
9

merge

Merge view for CodeMirror
TypeScript
63
star
10

theme-one-dark

One Dark theme for the CodeMirror code editor
TypeScript
60
star
11

state

Editor state data structures for the CodeMirror code editor
TypeScript
57
star
12

autocomplete

Autocompletion for the CodeMirror code editor
TypeScript
54
star
13

lang-javascript

JavaScript language support for the CodeMirror code editor
TypeScript
52
star
14

grammar-mode

Tool for compiling grammars to modes
JavaScript
44
star
15

collab

Collaborative editing for the CodeMirror code editor
TypeScript
36
star
16

google-modes

A consistent set of modes for C, C++, Java, Go, JavaScript, TypeScript, Python, HTML, and Angular Templates
JavaScript
33
star
17

website

TypeScript
31
star
18

lang-python

Python language support for the CodeMirror code editor
TypeScript
29
star
19

commands

Collection of editing commands for the CodeMirror code editor
TypeScript
24
star
20

lang-vue

Vue template support for CodeMirror
TypeScript
21
star
21

lang-json

JSON language support for the CodeMirror code editor
TypeScript
20
star
22

search

Search functionality for the CodeMirror code editor
TypeScript
17
star
23

lang-html

HTML language support for the CodeMirror code editor
TypeScript
17
star
24

lang-rust

Rust language support for the CodeMirror code editor
TypeScript
17
star
25

language

Language support infrastructure for the CodeMirror code editor
TypeScript
16
star
26

lint

Linting support for the CodeMirror code editor
TypeScript
15
star
27

highlight

Syntax highlighting for the CodeMirror code editor
TypeScript
14
star
28

lang-php

PHP integration for CodeMirror
TypeScript
12
star
29

lang-java

Java language support for the CodeMirror code editor
TypeScript
11
star
30

buildhelper

Build utility used by CodeMirror packages
JavaScript
10
star
31

lang-sass

Sass/SCSS language support for CodeMirror
TypeScript
10
star
32

lang-liquid

Liquid template support for CodeMirror
TypeScript
10
star
33

language-data

Language metadata and dynamic loading for the CodeMirror code editor
TypeScript
9
star
34

stream-parser

Streaming language parser for the CodeMirror code editor
TypeScript
9
star
35

lang-wast

WebAssembly Text Format support for the CodeMirror code editor
TypeScript
9
star
36

lang-angular

Angular Template language mode for CodeMirror
TypeScript
8
star
37

lang-cpp

C++ language support for the CodeMirror code editor
TypeScript
8
star
38

lang-yaml

YAML language support for CodeMirror
TypeScript
8
star
39

lang-css

CSS language support for the CodeMirror code editor
TypeScript
7
star
40

lang-lezer

Lezer grammar language support for CodeMirror
TypeScript
7
star
41

text

Document data structure for the CodeMirror code editor
TypeScript
7
star
42

closebrackets

Automatic bracket closing for the CodeMirror code editor
TypeScript
7
star
43

lang-go

Go language support for CodeMirror
TypeScript
7
star
44

lang-xml

XML language support for the CodeMirror code editor
TypeScript
6
star
45

matchbrackets

Bracket matching for the CodeMirror code editor
TypeScript
6
star
46

tooltip

Tooltip support for the CodeMirror code editor
TypeScript
5
star
47

rangeset

Range set data structure for the CodeMirror code editor
TypeScript
5
star
48

panel

UI panels for the CodeMirror code editor
TypeScript
4
star
49

gutter

Gutter and line number functionality for the CodeMirror code editor
TypeScript
4
star
50

lang-less

Less editor support for CodeMirror
TypeScript
4
star
51

fold

Code folding for the CodeMirror code editor
TypeScript
3
star
52

comment

Commenting and uncommenting commands for the CodeMirror code editor
TypeScript
3
star
53

history

Undo/redo history for the CodeMirror code editor
TypeScript
3
star
54

rectangular-selection

Rectangular selection for the CodeMirror code editor
TypeScript
3
star