UNPKG

83 kBMarkdownView Raw
1## 5.39.0 (2018-06-20)
2
3### Bug fixes
4
5Fix issue that in some circumstances caused content to be clipped off at the bottom after a resize.
6
7[markdown mode](http://codemirror.net/mode/markdown/): Improve handling of blank lines in HTML tags.
8
9### New features
10
11[stex mode](http://codemirror.net/mode/stex/): Add an `inMathMode` option to start the mode in math mode.
12
13## 5.38.0 (2018-05-21)
14
15### Bug fixes
16
17Improve reliability of noticing a missing mouseup event during dragging.
18
19Make sure `getSelection` is always called on the correct document.
20
21Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode.
22
23Work around some browsers inexplicably making the fake scrollbars focusable.
24
25Make sure `coordsChar` doesn't return positions inside collapsed ranges.
26
27[javascript mode](http://codemirror.net/mode/javascript/): Support block scopes, bindingless catch, bignum suffix, `s` regexp flag.
28
29[markdown mode](http://codemirror.net/mode/markdown/): Adjust a wasteful regexp.
30
31[show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Allow opening the control without any item selected.
32
33### New features
34
35New theme: [darcula](http://codemirror.net/demo/theme.html#darcula).
36
37[dialog addon](http://codemirror.net/doc/manual.html#addon_dialog): Add a CSS class (`dialog-opened`) to the editor when a dialog is open.
38
39## 5.37.0 (2018-04-20)
40
41### Bug fixes
42
43Suppress keypress events during composition, for platforms that don't properly do this themselves.
44
45[xml-fold addon](http://codemirror.net/demo/folding.html): Improve handling of line-wrapped opening tags.
46
47[javascript mode](http://codemirror.net/mode/javascript/): Improve TypeScript support.
48
49[python mode](http://codemirror.net/mode/python/): Highlight expressions inside format strings.
50
51### New features
52
53[vim bindings](http://codemirror.net/demo/vim.html): Add support for '(' and ')' movement.
54
55New themes: [idea](http://codemirror.net/demo/theme.html#idea), [ssms](http://codemirror.net/demo/theme.html#ssms), [gruvbox-dark](http://codemirror.net/demo/theme.html#gruvbox-dark).
56
57## 5.36.0 (2018-03-20)
58
59### Bug fixes
60
61Make sure all document-level event handlers are registered on the document that the editor is part of.
62
63Fix issue that prevented edits whose origin starts with `+` from being combined in history events for an editor-less document.
64
65[multiplex addon](http://codemirror.net/demo/multiplex.html): Improve handling of indentation.
66
67[merge addon](http://codemirror.net/doc/manual.html#addon_merge): Use CSS `:after` element to style the scroll-lock icon.
68
69[javascript-hint addon](http://codemirror.net/doc/manual.html#addon_javascript-hint): Don't provide completions in JSON mode.
70
71[continuelist addon](http://codemirror.net/doc/manual.html#addon_continuelist): Fix numbering error.
72
73[show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Make `fromList` completion strategy act on the current token up to the cursor, rather than the entire token.
74
75[markdown mode](http://codemirror.net/mode/markdown/): Fix a regexp with potentially exponental complexity.
76
77### New features
78
79New theme: [lucario](http://codemirror.net/demo/theme.html#lucario).
80
81## 5.35.0 (2018-02-20)
82
83### Bug fixes
84
85Fix problem where selection undo might change read-only documents.
86
87Fix crash when calling `addLineWidget` on a document that has no attached editor.
88
89[searchcursor addon](http://codemirror.net/doc/manual.html#addon_searchcursor): Fix behavior of `^` in multiline regexp mode.
90
91[match-highlighter addon](http://codemirror.net/doc/manual.html#addon_match-highlighter): Fix problem with matching words that have regexp special syntax in them.
92
93[sublime bindings](http://codemirror.net/demo/sublime.html): Fix `addCursorToSelection` for short lines.
94
95[javascript mode](http://codemirror.net/mode/javascript/): Support TypeScript intersection types, dynamic `import`.
96
97[stex mode](http://codemirror.net/mode/stex/): Fix parsing of `\(` `\)` delimiters, recognize more atom arguments.
98
99[haskell mode](http://codemirror.net/mode/haskell/): Highlight more builtins, support `<*` and `*>`.
100
101[sql mode](http://codemirror.net/mode/sql/): Make it possible to disable backslash escapes in strings for dialects that don't have them, do this for MS SQL.
102
103[dockerfile mode](http://codemirror.net/mode/dockerfile/): Highlight strings and ports, recognize more instructions.
104
105### New features
106
107[vim bindings](http://codemirror.net/demo/vim.html): Support alternative delimiters in replace command.
108
109## 5.34.0 (2018-01-29)
110
111### Bug fixes
112
113[markdown mode](http://codemirror.net/mode/markdown/): Fix a problem where inline styles would persist across list items.
114
115[sublime bindings](http://codemirror.net/demo/sublime.html): Fix the `toggleBookmark` command.
116
117[closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets): Improve behavior when closing triple quotes.
118
119[xml-fold addon](http://codemirror.net/demo/folding.html): Fix folding of line-broken XML tags.
120
121[shell mode](http://codemirror.net/mode/shell/): Better handling of nested quoting.
122
123[javascript-lint addon](http://codemirror.net/demo/lint.html): Clean up and simplify.
124
125[matchbrackets addon](http://codemirror.net/doc/manual.html#addon_matchbrackets): Fix support for multiple editors at the same time.
126
127### New features
128
129New themes: [oceanic-next](http://codemirror.net/demo/theme.html#oceanic-next) and [shadowfox](http://codemirror.net/demo/theme.html#shadowfox).
130
131## 5.33.0 (2017-12-21)
132
133### Bug fixes
134
135[lint addon](http://codemirror.net/doc/manual.html#addon_lint): Make updates more efficient.
136
137[css mode](http://codemirror.net/mode/css/): The mode is now properly case-insensitive.
138
139[continuelist addon](http://codemirror.net/doc/manual.html#addon_continuelist): Fix broken handling of unordered lists introduced in previous release.
140
141[swift](http://codemirror.net/mode/swift) and [scala](http://codemirror.net/mode/clike/) modes: Support nested block comments.
142
143[mllike mode](http://codemirror.net/mode/mllike/index.html): Improve OCaml support.
144
145[sublime bindings](http://codemirror.net/demo/sublime.html): Use the proper key bindings for `addCursorToNextLine` and `addCursorToPrevLine`.
146
147### New features
148
149[jsx mode](http://codemirror.net/mode/jsx/index.html): Support JSX fragments.
150
151[closetag addon](http://codemirror.net/demo/closetag.html): Add an option to disable auto-indenting.
152
153## 5.32.0 (2017-11-22)
154
155### Bug fixes
156
157Increase contrast on default bracket-matching colors.
158
159[javascript mode](http://codemirror.net/mode/javascript/): Recognize TypeScript type parameters for calls, type guards, and type parameter defaults. Improve handling of `enum` and `module` keywords.
160
161[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Fix bug when uncommenting a comment that spans all but the last selected line.
162
163[searchcursor addon](http://codemirror.net/doc/manual.html#addon_searchcursor): Fix bug in case folding.
164
165[emacs bindings](http://codemirror.net/demo/emacs.html): Prevent single-character deletions from resetting the kill ring.
166
167[closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets): Tweak quote matching behavior.
168
169### New features
170
171[continuelist addon](http://codemirror.net/doc/manual.html#addon_continuelist): Increment ordered list numbers when adding one.
172
173## 5.31.0 (2017-10-20)
174
175### Bug fixes
176
177Further improve selection drawing and cursor motion in right-to-left documents.
178
179[vim bindings](http://codemirror.net/demo/vim.html): Fix ctrl-w behavior, support quote-dot and backtick-dot marks, make the wide cursor visible in contentEditable [input mode](http://codemirror.net/doc/manual.html#option_contentEditable).
180
181[continuecomment addon](http://codemirror.net/doc/manual.html#addon_continuecomment): Fix bug when pressing enter after a single-line block comment.
182
183[markdown mode](http://codemirror.net/mode/markdown/): Fix issue with leaving indented fenced code blocks.
184
185[javascript mode](http://codemirror.net/mode/javascript/): Fix bad parsing of operators without spaces between them. Fix some corner cases around semicolon insertion and regexps.
186
187### New features
188
189Modes added with [`addOverlay`](http://codemirror.net/doc/manual.html#addOverlay) now have access to a [`baseToken`](http://codemirror.net/doc/manual.html#baseToken) method on their input stream, giving access to the tokens of the underlying mode.
190
191## 5.30.0 (2017-09-20)
192
193### Bug fixes
194
195Fixed a number of issues with drawing right-to-left selections and mouse selection in bidirectional text.
196
197[search addon](http://codemirror.net/demo/search/): Fix crash when restarting search after doing empty search.
198
199[mark-selection addon](http://cm/doc/manual.html#addon_mark-selection): Fix off-by-one bug.
200
201[tern addon](http://codemirror.net/demo/tern.html): Fix bad request made when editing at the bottom of a large document.
202
203[javascript mode](http://codemirror.net/mode/javascript/): Improve parsing in a number of corner cases.
204
205[markdown mode](http://codemirror.net/mode/markdown/): Fix crash when a sub-mode doesn't support indentation, allow uppercase X in task lists.
206
207[gfm mode](http://codemirror.net/mode/gfm/): Don't highlight SHA1 'hashes' without numbers to avoid false positives.
208
209[soy mode](http://codemirror.net/mode/soy/): Support injected data and `@param` in comments.
210
211### New features
212
213[simple mode addon](http://codemirror.net/demo/simplemode.html): Allow groups in regexps when `token` isn't an array.
214
215## 5.29.0 (2017-08-24)
216
217### Bug fixes
218
219Fix crash in contentEditable input style when editing near a bookmark.
220
221Make sure change origins are preserved when splitting changes on [read-only marks](http://codemirror.net/doc/manual.html#mark_readOnly).
222
223[javascript mode](http://codemirror.net/mode/javascript/): More support for TypeScript syntax.
224
225[d mode](http://codemirror.net/mode/d/): Support nested comments.
226
227[python mode](http://codemirror.net/mode/python/): Improve tokenizing of operators.
228
229[markdown mode](http://codemirror.net/mode/markdown/): Further improve CommonMark conformance.
230
231[css mode](http://codemirror.net/mode/css/): Don't run comment tokens through the mode's state machine.
232
233[shell mode](http://codemirror.net/mode/shell/): Allow strings to span lines.
234
235[search addon](http://codemirror.net/demo/search/): Fix crash in persistent search when `extraKeys` is null.
236
237## 5.28.0 (2017-07-21)
238
239### Bug fixes
240
241Fix copying of, or replacing editor content with, a single dash character when copying a big selection in some corner cases.
242
243Make [`"goLineLeft"`](http://codemirror.net/doc/manual.html#command_goLineLeft)/`"goLineRight"` behave better on wrapped lines.
244
245[sql mode](http://codemirror.net/mode/sql/): Fix tokenizing of multi-dot operator and allow digits in subfield names.
246
247[searchcursor addon](http://codemirror.net/doc/manual.html#addon_searchcursor): Fix infinite loop on some composed character inputs.
248
249[markdown mode](http://codemirror.net/mode/markdown/): Make list parsing more CommonMark-compliant.
250
251[gfm mode](http://codemirror.net/mode/gfm/): Highlight colon syntax for emoji.
252
253### New features
254
255Expose [`startOperation`](http://codemirror.net/doc/manual.html#startOperation) and `endOperation` for explicit operation management.
256
257[sublime bindings](http://codemirror.net/demo/sublime.html): Add extend-selection (Ctrl-Alt- or Cmd-Shift-Up/Down).
258
259## 5.27.4 (2017-06-29)
260
261### Bug fixes
262
263Fix crash when using mode lookahead.
264
265[markdown mode](http://codemirror.net/mode/markdown/): Don't block inner mode's indentation support.
266
267## 5.27.2 (2017-06-22)
268
269### Bug fixes
270
271Fix crash in the [simple mode](http://codemirror.net/demo/simplemode.html)< addon.
272
273## 5.27.0 (2017-06-22)
274
275### Bug fixes
276
277Fix infinite loop in forced display update.
278
279Properly disable the hidden textarea when `readOnly` is `"nocursor"`.
280
281Calling the `Doc` constructor without `new` works again.
282
283[sql mode](http://codemirror.net/mode/sql/): Handle nested comments.
284
285[javascript mode](http://codemirror.net/mode/javascript/): Improve support for TypeScript syntax.
286
287[markdown mode](http://codemirror.net/mode/markdown/): Fix bug where markup was ignored on indented paragraph lines.
288
289[vim bindings](http://codemirror.net/demo/vim.html): Referencing invalid registers no longer causes an uncaught exception.
290
291[rust mode](http://codemirror.net/mode/rust/): Add the correct MIME type.
292
293[matchbrackets addon](http://codemirror.net/doc/manual.html#addon_matchbrackets): Document options.
294
295### New features
296
297Mouse button clicks can now be bound in keymaps by using names like `"LeftClick"` or `"Ctrl-Alt-MiddleTripleClick"`. When bound to a function, that function will be passed the position of the click as second argument.
298
299The behavior of mouse selection and dragging can now be customized with the [`configureMouse`](http://codemirror.net/doc/manual.html#option_configureMouse) option.
300
301Modes can now look ahead across line boundaries with the [`StringStream`](http://codemirror.net/doc/manual.html#StringStream)`.lookahead` method.
302
303Introduces a `"type"` token type, makes modes that recognize types output it, and add styling for it to the themes.
304
305New [`pasteLinesPerSelection`](http://codemirror.net/doc/manual.html#option_pasteLinesPerSelection) option to control the behavior of pasting multiple lines into multiple selections.
306
307[searchcursor addon](http://codemirror.net/doc/manual.html#addon_searchcursor): Support multi-line regular expression matches, and normalize strings when matching.
308
309## 5.26.0 (2017-05-22)
310
311### Bug fixes
312
313In textarea-mode, don't reset the input field during composition.
314
315More careful restoration of selections in widgets, during editor redraw.
316
317[javascript mode](http://codemirror.net/mode/javascript/): More TypeScript parsing fixes.
318
319[julia mode](http://codemirror.net/mode/julia/): Fix issue where the mode gets stuck.
320
321[markdown mode](http://codemirror.net/mode/markdown/): Understand cross-line links, parse all bracketed things as links.
322
323[soy mode](http://codemirror.net/mode/soy/): Support single-quoted strings.
324
325[go mode](http://codemirror.net/mode/go/): Don't try to indent inside strings or comments.
326
327### New features
328
329[vim bindings](http://codemirror.net/demo/vim.html): Parse line offsets in line or range specs.
330
331## 5.25.2 (2017-04-20)
332
333### Bug fixes
334
335Better handling of selections that cover the whole viewport in contentEditable-mode.
336
337No longer accidentally scroll the editor into view when calling `setValue`.
338
339Work around Chrome Android bug when converting screen coordinates to editor positions.
340
341Make sure long-clicking a selection sets a cursor and doesn't show the editor losing focus.
342
343Fix issue where pointer events were incorrectly disabled on Chrome's overlay scrollbars.
344
345[javascript mode](http://codemirror.net/mode/javascript/): Recognize annotations and TypeScript-style type parameters.
346
347[shell mode](http://codemirror.net/mode/shell/): Handle nested braces.
348
349[markdown mode](http://codemirror.net/mode/markdown/): Make parsing of strong/em delimiters CommonMark-compliant.
350
351## 5.25.0 (2017-03-20)
352
353### Bug fixes
354
355In contentEditable-mode, properly locate changes that repeat a character when inserted with IME.
356
357Fix handling of selections bigger than the viewport in contentEditable mode.
358
359Improve handling of changes that insert or delete lines in contentEditable mode.
360
361Count Unicode control characters 0x80 to 0x9F as special (non-printing) chars.
362
363Fix handling of shadow DOM roots when finding the active element.
364
365Add `role=presentation` to more DOM elements to improve screen reader support.
366
367[merge addon](http://codemirror.net/doc/manual.html#addon_merge): Make aligning of unchanged chunks more robust.
368
369[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Fix comment-toggling on a block of text that starts and ends in a (differnet) block comment.
370
371[javascript mode](http://codemirror.net/mode/javascript/): Improve support for TypeScript syntax.
372
373[r mode](http://codemirror.net/mode/r/): Fix indentation after semicolon-less statements.
374
375[shell mode](http://codemirror.net/mode/shell/): Properly handle escaped parentheses in parenthesized expressions.
376
377[markdown mode](http://codemirror.net/mode/markdown/): Fix a few bugs around leaving fenced code blocks.
378
379[soy mode](http://codemirror.net/mode/soy/): Improve indentation.
380
381### New features
382
383[lint addon](http://codemirror.net/doc/manual.html#addon_lint): Support asynchronous linters that return promises.
384
385[continuelist addon](http://codemirror.net/doc/manual.html#addon_continuelist): Support continuing task lists.
386
387[vim bindings](http://codemirror.net/demo/vim.html): Make Y behave like yy.
388
389[sql mode](http://codemirror.net/mode/sql/): Support sqlite dialect.
390
391## 5.24.2 (2017-02-22)
392
393### Bug fixes
394
395[javascript mode](http://codemirror.net/mode/javascript/): Support computed class method names.
396
397[merge addon](http://codemirror.net/doc/manual.html#addon_merge): Improve aligning of unchanged code in the presence of marks and line widgets.
398
399## 5.24.0 (2017-02-20)
400
401### Bug fixes
402
403A cursor directly before a line-wrapping break is now drawn before or after the line break depending on which direction you arrived from.
404
405Visual cursor motion in line-wrapped right-to-left text should be much more correct.
406
407Fix bug in handling of read-only marked text.
408
409[shell mode](http://codemirror.net/mode/shell/): Properly tokenize nested parentheses.
410
411[python mode](http://codemirror.net/mode/python/): Support underscores in number literals.
412
413[sass mode](http://codemirror.net/mode/sass/): Uses the full list of CSS properties and keywords from the CSS mode, rather than defining its own incomplete subset.
414
415[css mode](http://codemirror.net/mode/css/): Expose `lineComment` property for LESS and SCSS dialects. Recognize vendor prefixes on pseudo-elements.
416
417[julia mode](http://codemirror.net/mode/julia/): Properly indent `elseif` lines.
418
419[markdown mode](http://codemirror.net/mode/markdown/): Properly recognize the end of fenced code blocks when inside other markup.
420
421[scala mode](http://codemirror.net/mode/clike/): Improve handling of operators containing <code>#</code>, <code>@</code>, and <code>:</code> chars.
422
423[xml mode](http://codemirror.net/mode/xml/): Allow dashes in HTML tag names.
424
425[javascript mode](http://codemirror.net/mode/javascript/): Improve parsing of async methods, TypeScript-style comma-separated superclass lists.
426
427[indent-fold addon](http://codemirror.net/demo/folding.html): Ignore comment lines.
428
429### New features
430
431Positions now support a `sticky` property which determines whether they should be associated with the character before (value `"before"`) or after (value `"after"`) them.
432
433[vim bindings](http://codemirror.net/demo/vim.html): Make it possible to remove built-in bindings through the API.
434
435[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Support a per-mode <code>useInnerComments</code> option to optionally suppress descending to the inner modes to get comment strings.
436
437### Breaking changes
438
439The [sass mode](http://codemirror.net/mode/sass/) now depends on the [css mode](http://codemirror.net/mode/css/).
440
441## 5.23.0 (2017-01-19)
442
443### Bug fixes
444
445Presentation-related elements DOM elements are now marked as such to help screen readers.
446
447[markdown mode](http://codemirror.net/mode/markdown/): Be more picky about what HTML tags look like to avoid false positives.
448
449### New features
450
451`findModeByMIME` now understands `+json` and `+xml` MIME suffixes.
452
453[closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets): Add support for an `override` option to ignore language-specific defaults.
454
455[panel addon](http://codemirror.net/doc/manual.html#addon_panel): Add a `stable` option that auto-scrolls the content to keep it in the same place when inserting/removing a panel.
456
457## 5.22.2 (2017-01-12)
458
459### Bug fixes
460
461Include rollup.config.js in NPM package, so that it can be used to build from source.
462
463## 5.22.0 (2016-12-20)
464
465### Bug fixes
466
467[sublime bindings](http://codemirror.net/demo/sublime.html): Make `selectBetweenBrackets` work with multiple cursors.
468
469[javascript mode](http://codemirror.net/mode/javascript/): Fix issues with parsing complex TypeScript types, imports, and exports.
470
471A contentEditable editor instance with autofocus enabled no longer crashes during initializing.
472
473### New features
474
475[emacs bindings](http://codemirror.net/demo/emacs.html): Export `CodeMirror.emacs` to allow other addons to hook into Emacs-style functionality.
476
477[active-line addon](http://codemirror.net/doc/manual.html#addon_active-line): Add `nonEmpty` option.
478
479New event: [`optionChange`](http://codemirror.net/doc/manual.html#event_optionChange).
480
481## 5.21.0 (2016-11-21)
482
483### Bug fixes
484
485Tapping/clicking the editor in [contentEditable mode](http://codemirror.net/doc/manual.html#option_inputStyle) on Chrome now puts the cursor at the tapped position.
486
487Fix various crashes and misbehaviors when reading composition events in [contentEditable mode](http://codemirror.net/doc/manual.html#option_inputStyle).
488
489Catches and ignores an IE 'Unspecified Error' when creating an editor in an iframe before there is a `<body>`.
490
491[merge addon](http://codemirror.net/doc/manual.html#addon_merge): Fix several issues in the chunk-aligning feature.
492
493[verilog mode](http://codemirror.net/mode/verilog): Rewritten to address various issues.
494
495[julia mode](http://codemirror.net/mode/julia): Recognize Julia 0.5 syntax.
496
497[swift mode](http://codemirror.net/mode/swift): Various fixes and adjustments to current syntax.
498
499[markdown mode](http://codemirror.net/mode/markdown): Allow lists without a blank line above them.
500
501### New features
502
503The [`setGutterMarker`](http://codemirror.net/doc/manual.html#setGutterMarker), [`clearGutter`](http://codemirror.net/doc/manual.html#clearGutter), and [`lineInfo`](http://codemirror.net/doc/manual.html#lineInfo) methods are now available on `Doc` objects.
504
505The [`heightAtLine`](http://codemirror.net/doc/manual.html#heightAtLine) method now takes an extra argument to allow finding the height at the top of the line's line widgets.
506
507[ruby mode](http://codemirror.net/mode/ruby): `else` and `elsif` are now immediately indented.
508
509[vim bindings](http://codemirror.net/demo/vim.html): Bind Ctrl-T and Ctrl-D to in- and dedent in insert mode.
510
511## 5.20.2 (2016-10-21)
512
513### Bug fixes
514
515Fix `CodeMirror.version` returning the wrong version number.
516
517## 5.20.0 (2016-10-20)
518
519### Bug fixes
520
521Make `newlineAndIndent` command work with multiple cursors on the same line.
522
523Make sure keypress events for backspace are ignored.
524
525Tokens styled with overlays no longer get a nonsense `cm-cm-overlay` class.
526
527Line endings for pasted content are now normalized to the editor's [preferred ending](http://codemirror.net/doc/manual.html#option_lineSeparator).
528
529[javascript mode](http://codemirror.net/mode/javascript): Improve support for class expressions. Support TypeScript optional class properties, the `abstract` keyword, and return type declarations for arrow functions.
530
531[css mode](http://codemirror.net/mode/css): Fix highlighting of mixed-case keywords.
532
533[closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets): Improve behavior when typing a quote before a string.
534
535### New features
536
537The core is now maintained as a number of small files, using ES6 syntax and modules, under the `src/` directory. A git checkout no longer contains a working `codemirror.js` until you `npm build` (but when installing from NPM, it is included).
538
539The [`refresh`](http://codemirror.net/doc/manual.html#event_refresh) event is now documented and stable.
540
541## 5.19.0 (2016-09-20)
542
543### Bugfixes
544
545[erlang mode](http://codemirror.net/mode/erlang): Fix mode crash when trying to read an empty context.
546
547[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Fix broken behavior when toggling comments inside a comment.
548
549xml-fold addon: Fix a null-dereference bug.
550
551Page up and page down now do something even in single-line documents.
552
553Fix an issue where the cursor position could be off in really long (~8000 character) tokens.
554
555### New features
556
557[javascript mode](http://codemirror.net/mode/javascript): Better indentation when semicolons are missing. Better support for TypeScript classes, optional parameters, and the `type` keyword.
558
559The [`blur`](http://codemirror.net/doc/manual.html#event_blur) and [`focus`](http://codemirror.net/doc/manual.html#event_focus) events now pass the DOM event to their handlers.
560
561## 5.18.2 (2016-08-23)
562
563### Bugfixes
564
565[vue mode](http://codemirror.net/mode/vue): Fix outdated references to renamed Pug mode dependency.
566
567## 5.18.0 (2016-08-22)
568
569### Bugfixes
570
571Make sure [gutter backgrounds](http://codemirror.net/doc/manual.html#addLineClass) stick to the rest of the gutter during horizontal scrolling.
572
573The contenteditable [`inputStyle`](http://codemirror.net/doc/manual.html#option_inputStyle) now properly supports pasting on pre-Edge IE versions.
574
575[javascript mode](http://codemirror.net/mode/javascript): Fix some small parsing bugs and improve TypeScript support.
576
577[matchbrackets addon](http://codemirror.net/doc/manual.html#addon_matchbrackets): Fix bug where active highlighting was left in editor when the addon was disabled.
578
579[match-highlighter addon](http://codemirror.net/doc/manual.html#addon_match-highlighter): Only start highlighting things when the editor gains focus.
580
581[javascript-hint addon](http://codemirror.net/doc/manual.html#addon_javascript-hint): Also complete non-enumerable properties.
582
583### New features
584
585The [`addOverlay`](http://codemirror.net/doc/manual.html#addOverlay) method now supports a `priority` option to control the order in which overlays are applied.
586
587MIME types that end in `+json` now default to the JSON mode when the MIME itself is not defined.
588
589### Breaking changes
590
591The mode formerly known as Jade was renamed to [Pug](http://codemirror.net/mode/pug).
592
593The [Python mode](http://codemirror.net/mode/python) now defaults to Python 3 (rather than 2) syntax.
594
595## 5.17.0 (2016-07-19)
596
597### Bugfixes
598
599Fix problem with wrapped trailing whitespace displaying incorrectly.
600
601Prevent IME dialog from overlapping typed content in Chrome.
602
603Improve measuring of characters near a line wrap.
604
605[javascript mode](http://codemirror.net/mode/javascript): Improve support for `async`, allow trailing commas in `import` lists.
606
607[vim bindings](http://codemirror.net/demo/vim.html): Fix backspace in replace mode.
608
609[sublime bindings](http://codemirror.net/demo/sublime.html): Fix some key bindings on OS X to match Sublime Text.
610
611### New features
612
613[markdown mode](http://codemirror.net/mode/markdown): Add more classes to image links in highlight-formatting mode.
614
615## 5.16.0 (2016-06-20)
616
617### Bugfixes
618
619Fix glitches when dragging content caused by the drop indicator receiving mouse events.
620
621Make Control-drag work on Firefox.
622
623Make clicking or selection-dragging at the end of a wrapped line select the right position.
624
625[show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Prevent widget scrollbar from hiding part of the hint text.
626
627[rulers addon](http://codemirror.net/doc/manual.html#addon_rulers): Prevent rulers from forcing a horizontal editor scrollbar.
628
629### New features
630
631[search addon](http://codemirror.net/doc/manual.html#addon_search): Automatically bind search-related keys in persistent dialog.
632
633[sublime keymap](http://codemirror.net/demo/sublime.html): Add a multi-cursor aware smart backspace binding.
634
635## 5.15.2 (2016-05-20)
636
637### Bugfixes
638
639Fix a critical document corruption bug that occurs when a document is gradually grown.
640
641## 5.15.0 (2016-05-20)
642
643### Bugfixes
644
645Fix bug that caused the selection to reset when focusing the editor in contentEditable input mode.
646
647Fix issue where not all ASCII control characters were being replaced by placeholders.
648
649Remove the assumption that all modes have a `startState` method from several wrapping modes.
650
651Fix issue where the editor would complain about overlapping collapsed ranges when there weren't any.
652
653Optimize document tree building when loading or pasting huge chunks of content.
654
655[markdown mode](http://codemirror.net/mode/markdown/): Fix several issues in matching link targets.
656
657[clike mode](http://codemirror.net/mode/clike/): Improve indentation of C++ template declarations.
658
659### New features
660
661Explicitly bind Ctrl-O on OS X to make that binding (“open line”) act as expected.
662
663Pasting [linewise-copied](http://codemirror.net/doc/manual.html#option_lineWiseCopyCut) content when there is no selection now inserts the lines above the current line.
664
665[javascript mode](http://codemirror.net/mode/javascript/): Support `async`/`await` and improve support for TypeScript type syntax.
666
667## 5.14.2 (2016-04-20)
668
669### Bugfixes
670
671Push a new package to NPM due to an [NPM bug](https://github.com/npm/npm/issues/5082) omitting the LICENSE file in 5.14.0.
672
673Set `dataTransfer.effectAllowed` in `dragstart` handler to help browsers use the right drag icon.
674
675Add the [mbox mode](http://codemirror.net/mode/mbox/index.html) to `mode/meta.js`.
676
677## 5.14.0 (2016-04-20)
678
679### Bugfixes
680
681[`posFromIndex`](http://codemirror.net/doc/manual.html#posFromIndex) and [`indexFromPos`](http://codemirror.net/doc/manual.html#indexFromPos) now take [`lineSeparator`](http://codemirror.net/doc/manual.html#option_lineSeparator) into account.
682
683[vim bindings](http://codemirror.net/demo/vim.html): Only call `.save()` when it is actually available.
684
685[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Be careful not to mangle multi-line strings.
686
687[Python mode](http://codemirror.net/mode/python/index.html): Improve distinguishing of decorators from `@` operators.
688
689[`findMarks`](http://codemirror.net/doc/manual.html#findMarks): No longer return marks that touch but don't overlap given range.
690
691### New features
692
693[vim bindings](http://codemirror.net/demo/vim.html): Add yank command.
694
695[match-highlighter addon](http://codemirror.net/doc/manual.html#addon_match-highlighter): Add `trim` option to disable ignoring of whitespace.
696
697[PowerShell mode](http://codemirror.net/mode/powershell/index.html): Added.
698
699[Yacas mode](http://codemirror.net/mode/yacas/index.html): Added.
700
701[Web IDL mode](http://codemirror.net/mode/webidl/index.html): Added.
702
703[SAS mode](http://codemirror.net/mode/sas/index.html): Added.
704
705[mbox mode](http://codemirror.net/mode/mbox/index.html): Added.
706
707## 5.13.2 (2016-03-23)
708
709### Bugfixes
710
711Solves a problem where the gutter would sometimes not extend all the way to the end of the document.
712
713## 5.13.0 (2016-03-21)
714
715### New features
716
717New DOM event forwarded: [`"dragleave"`](http://codemirror.net/doc/manual.html#event_dom).
718
719[protobuf mode](http://codemirror.net/mode/protobuf/index.html): Newly added.
720
721### Bugfixes
722
723Fix problem where [`findMarks`](http://codemirror.net/doc/manual.html#findMarks) sometimes failed to find multi-line marks.
724
725Fix crash that showed up when atomic ranges and bidi text were combined.
726
727[show-hint addon](http://codemirror.net/demo/complete.html): Completion widgets no longer close when the line indented or dedented.
728
729[merge addon](http://codemirror.net/demo/merge.html): Fix bug when merging chunks at the end of the file.
730
731[placeholder addon](http://codemirror.net/doc/manual.html#addon_placeholder): No longer gets confused by [`swapDoc`](http://codemirror.net/doc/manual.html#swapDoc).
732
733[simplescrollbars addon](http://codemirror.net/doc/manual.html#addon_simplescrollbars): Fix invalid state when deleting at end of document.
734
735[clike mode](http://codemirror.net/mode/clike/index.html): No longer gets confused when a comment starts after an operator.
736
737[markdown mode](http://codemirror.net/mode/markdown/index.html): Now supports CommonMark-style flexible list indentation.
738
739[dylan mode](http://codemirror.net/mode/dylan/index.html): Several improvements and fixes.
740
741## 5.12.0 (2016-02-19)
742
743### New features
744
745[Vim bindings](http://codemirror.net/demo/vim.html): Ctrl-Q is now an alias for Ctrl-V.
746
747[Vim bindings](http://codemirror.net/demo/vim.html): The Vim API now exposes an `unmap` method to unmap bindings.
748
749[active-line addon](http://codemirror.net/demo/activeline.html): This addon can now style the active line's gutter.
750
751[FCL mode](http://codemirror.net/mode/fcl/): Newly added.
752
753[SQL mode](http://codemirror.net/mode/sql/): Now has a Postgresql dialect.
754
755### Bugfixes
756
757Fix [issue](https://github.com/codemirror/CodeMirror/issues/3781) where trying to scroll to a horizontal position outside of the document's width could cause the gutter to be positioned incorrectly.
758
759Use absolute, rather than fixed positioning in the context-menu intercept hack, to work around a [problem](https://github.com/codemirror/CodeMirror/issues/3238) when the editor is inside a transformed parent container.
760
761Solve a [problem](https://github.com/codemirror/CodeMirror/issues/3821) where the horizontal scrollbar could hide text in Firefox.
762
763Fix a [bug](https://github.com/codemirror/CodeMirror/issues/3834) that caused phantom scroll space under the text in some situations.
764
765[Sublime Text bindings](http://codemirror.net/demo/sublime.html): Bind delete-line to Shift-Ctrl-K on OS X.
766
767[Markdown mode](http://codemirror.net/mode/markdown/): Fix [issue](https://github.com/codemirror/CodeMirror/issues/3787) where the mode would keep state related to fenced code blocks in an unsafe way, leading to occasional corrupted parses.
768
769[Markdown mode](http://codemirror.net/mode/markdown/): Ignore backslashes in code fragments.
770
771[Markdown mode](http://codemirror.net/mode/markdown/): Use whichever mode is registered as `text/html` to parse HTML.
772
773[Clike mode](http://codemirror.net/mode/clike/): Improve indentation of Scala `=>` functions.
774
775[Python mode](http://codemirror.net/mode/python/): Improve indentation of bracketed code.
776
777[HTMLMixed mode](http://codemirror.net/mode/htmlmixed/): Support multi-line opening tags for sub-languages (`<script>`, `<style>`, etc).
778
779[Spreadsheet mode](http://codemirror.net/mode/spreadsheet/): Fix bug where the mode did not advance the stream when finding a backslash.
780
781[XML mode](http://codemirror.net/mode/xml/): The mode now takes a `matchClosing` option to configure whether mismatched closing tags should be highlighted as errors.
782
783## 5.11.0 (2016-01-20)
784
785* New modes: [JSX](http://codemirror.net/mode/jsx/index.html), [literate Haskell](http://codemirror.net/mode/haskell-literate/index.html)
786* The editor now forwards more [DOM events](http://codemirror.net/doc/manual.html#event_dom): `cut`, `copy`, `paste`, and `touchstart`. It will also forward `mousedown` for drag events
787* Fixes a bug where bookmarks next to collapsed spans were not rendered
788* The [Swift](http://codemirror.net/mode/swift/index.html) mode now supports auto-indentation
789* Frontmatters in the [YAML frontmatter](http://codemirror.net/mode/yaml-frontmatter/index.html) mode are now optional as intended
790
791## 5.10.0 (2015-12-21)
792
793* Modify the way [atomic ranges](http://codemirror.net/doc/manual.html#mark_atomic) are skipped by selection to try and make it less surprising.
794* The [Swift mode](http://codemirror.net/mode/swift/index.html) was rewritten.
795* New addon: [jump-to-line](http://codemirror.net/doc/manual.html#addon_jump-to-line).
796* New method: [`isReadOnly`](http://codemirror.net/doc/manual.html#isReadOnly).
797* The [show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint) now defaults to picking completions on single click.
798* The object passed to [`"beforeSelectionChange"`](http://codemirror.net/doc/manual.html#event_beforeSelectionChange) events now has an `origin` property.
799* New mode: [Crystal](http://codemirror.net/mode/crystal/index.html).
800
801## 5.9.0 (2015-11-23)
802
803* Improve the way overlay (OS X-style) scrollbars are handled
804* Make [annotatescrollbar](http://codemirror.net/doc/manual.html#addon_annotatescrollbar) and scrollpastend addons work properly together
805* Make [show-hint](http://codemirror.net/doc/manual.html#addon_show-hint) addon select options on single click by default, move selection to hovered item
806* Properly fold comments that include block-comment-start markers
807* Many small language mode fixes
808
809## 5.8.0 (2015-10-20)
810
811* Fixes an infinite loop in the [hardwrap addon](http://codemirror.net/doc/manual.html#addon_hardwrap)
812* New modes: [NSIS](http://codemirror.net/mode/nsis/index.html), [Ceylon](http://codemirror.net/mode/clike/index.html)
813* The Kotlin mode is now a [clike](http://codemirror.net/mode/clike/index.html) dialect, rather than a stand-alone mode
814* New option: [`allowDropFileTypes`](http://codemirror.net/doc/manual.html#option_allowDropFileTypes). Binary files can no longer be dropped into CodeMirror
815* New themes: [bespin](http://codemirror.net/demo/theme.html#bespin), [hopscotch](http://codemirror.net/demo/theme.html#hopscotch), [isotope](http://codemirror.net/demo/theme.html#isotope), [railscasts](http://codemirror.net/demo/theme.html#railscasts)
816
817## 5.7.0 (2015-09-21)
818
819* New modes: [Vue](http://codemirror.net/mode/vue/index.html), [Oz](http://codemirror.net/mode/oz/index.html), [MscGen](http://codemirror.net/mode/mscgen/index.html) (and dialects), [Closure Stylesheets](http://codemirror.net/mode/css/gss.html)
820* Implement [CommonMark](http://commonmark.org)-style flexible list indent and cross-line code spans in [Markdown](http://codemirror.net/mode/markdown/index.html) mode
821* Add a replace-all button to the [search addon](http://codemirror.net/doc/manual.html#addon_search), and make the persistent search dialog transparent when it obscures the match
822* Handle `acync`/`await` and ocal and binary numbers in [JavaScript mode](http://codemirror.net/mode/javascript/index.html)
823* Fix various issues with the [Haxe mode](http://codemirror.net/mode/haxe/index.html)
824* Make the [closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets) select only the wrapped text when wrapping selection in brackets
825* Tokenize properties as properties in the [CoffeeScript mode](http://codemirror.net/mode/coffeescript/index.html)
826* The [placeholder addon](http://codemirror.net/doc/manual.html#addon_placeholder) now accepts a DOM node as well as a string placeholder
827
828## 5.6.0 (2015-08-20)
829
830* Fix bug where you could paste into a `readOnly` editor
831* Show a cursor at the drop location when dragging over the editor
832* The [Rust mode](http://codemirror.net/mode/rust/index.html) was rewritten to handle modern Rust
833* The editor and theme CSS was cleaned up. Some selectors are now less specific than before
834* New theme: [abcdef](http://codemirror.net/demo/theme.html#abcdef)
835* Lines longer than [`maxHighlightLength`](http://codemirror.net/doc/manual.html#option_maxHighlightLength) are now less likely to mess up indentation
836* New addons: [`autorefresh`](http://codemirror.net/doc/manual.html#addon_autorefresh) for refreshing an editor the first time it becomes visible, and `html-lint` for using [HTMLHint](http://htmlhint.com/)
837* The [`search`](http://codemirror.net/doc/manual.html#addon_search) addon now recognizes `\r` and `\n` in pattern and replacement input
838
839## 5.5.0 (2015-07-20)
840
841* New option: [`lineSeparator`](http://codemirror.net/doc/manual.html#option_lineSeparator) (with corresponding [method](http://codemirror.net/doc/manual.html#lineSeparator))
842* New themes: [dracula](http://codemirror.net/demo/theme.html#dracula), [seti](http://codemirror.net/demo/theme.html#seti), [yeti](http://codemirror.net/demo/theme.html#yeti), [material](http://codemirror.net/demo/theme.html#material), and [icecoder](http://codemirror.net/demo/theme.html#icecoder)
843* New modes: [Brainfuck](http://codemirror.net/mode/brainfuck/index.html), [VHDL](http://codemirror.net/mode/vhdl/index.html), Squirrel ([clike](http://codemirror.net/mode/clike/index.html) dialect)
844* Define a `findPersistent` command in the [search](http://codemirror.net/demo/search.html) addon, for a dialog that stays open as you cycle through matches
845* From this release on, the NPM module doesn't include documentation and demos
846* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.4.0...5.5.0)
847
848## 5.4.0 (2015-06-25)
849
850* New modes: [Twig](http://codemirror.net/mode/twig/index.html), [Elm](http://codemirror.net/mode/elm/index.html), [Factor](http://codemirror.net/mode/factor/index.html), [Swift](http://codemirror.net/mode/swift/index.html)
851* Prefer clipboard API (if available) when pasting
852* Refined definition highlighting in [clike](http://codemirror.net/mode/clike/index.html) mode
853* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.3.0...5.4.0)
854
855## 5.3.0 (2015-05-20)
856
857* Fix several regressions in the [`show-hint`](http://codemirror.net/doc/manual.html#addon_show-hint) addon (`completeSingle` option, `"shown"` and `"close"` events)
858* The [vim mode](http://codemirror.net/demo/vim.html) API was [documented](http://codemirror.net/doc/manual.html#vimapi)
859* New modes: [ASN.1](http://codemirror.net/mode/asn.1/index.html), [TTCN](http://codemirror.net/mode/ttcn/index.html), and [TTCN-CFG](http://codemirror.net/mode/ttcn-cfg/index.html)
860* The [clike](http://codemirror.net/mode/clike/index.html) mode can now deep-indent `switch` statements, and roughly recognizes types and defined identifiers
861* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.2.0...5.3.0)
862
863## 5.2.0 (2015-04-20)
864
865* Fix several race conditions in [`show-hint`](http://codemirror.net/doc/manual.html#addon_show-hint)'s asynchronous mode
866* Fix backspace binding in [Sublime bindings](http://codemirror.net/demo/sublime.html)
867* Change the way IME is handled in the `"textarea"` [input style](http://codemirror.net/doc/manual.html#option_inputStyle)
868* New modes: [MUMPS](http://codemirror.net/mode/mumps/index.html), [Handlebars](http://codemirror.net/mode/handlebars/index.html)
869* Rewritten modes: [Django](http://codemirror.net/mode/django/index.html), [Z80](http://codemirror.net/mode/z80/index.html)
870* New theme: [Liquibyte](http://codemirror.net/demo/theme.html#liquibyte)
871* New option: [`lineWiseCopyCut`](http://codemirror.net/doc/manual.html#option_lineWiseCopyCut)
872* The [Vim mode](http://codemirror.net/demo/vim.html) now supports buffer-local options and the `filetype` setting
873* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.1.0...5.2.0)
874
875## 5.1.0 (2015-03-23)
876
877* New modes: [ASCII armor](http://codemirror.net/mode/asciiarmor/index.html) (PGP data), [Troff](http://codemirror.net/mode/troff/index.html), and [CMake](http://codemirror.net/mode/cmake/index.html).
878* Remove SmartyMixed mode, rewrite [Smarty](http://codemirror.net/mode/smarty/index.html) mode to supersede it.
879* New commands in the [merge addon](http://codemirror.net/doc/manual.html#addon_merge): `goNextDiff` and `goPrevDiff`.
880* The [closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets) can now be configured per mode.
881* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.0.0...5.1.0).
882
883## 5.0.0 (2015-02-20)
884
885* Experimental mobile support (tested on iOS, Android Chrome, stock Android browser)
886* New option [`inputStyle`](http://codemirror.net/doc/manual.html#option_inputStyle) to switch between hidden textarea and contenteditable input.
887* The [`getInputField`](http://codemirror.net/doc/manual.html#getInputField) method is no longer guaranteed to return a textarea.
888* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.13.0...5.0.0).
889
890## 4.13.0 (2015-02-20)
891
892* Fix the way the [`closetag`](http://codemirror.net/demo/closetag.html) demo handles the slash character.
893* New modes: [Forth](http://codemirror.net/mode/forth/index.html), [Stylus](http://codemirror.net/mode/stylus/index.html).
894* Make the [CSS mode](http://codemirror.net/mode/css/index.html) understand some modern CSS extensions.
895* Have the [Scala mode](http://codemirror.net/mode/clike/index.html) handle symbols and triple-quoted strings.
896* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.12.0...4.13.0).
897
898## 4.12.0 (2015-01-22)
899
900* The [`closetag`](http://codemirror.net/doc/manual.html#addon_closetag) addon now defines a `"closeTag"` command.
901* Adds a `findModeByFileName` to the [mode metadata](http://codemirror.net/doc/manual.html#addon_meta) addon.
902* [Simple mode](http://codemirror.net/demo/simplemode.html) rules can now contain a `sol` property to only match at the start of a line.
903* New addon: [`selection-pointer`](http://codemirror.net/doc/manual.html#addon_selection-pointer) to style the mouse cursor over the selection.
904* Improvements to the [Sass mode](http://codemirror.net/mode/sass/index.html)'s indentation.
905* The [Vim keymap](http://codemirror.net/demo/vim.html)'s search functionality now supports [scrollbar annotation](http://codemirror.net/doc/manual.html#addon_matchesonscrollbar).
906* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.11.0...4.12.0).
907
908## 4.11.0 (2015-01-09)
909
910Unfortunately, 4.10 did not take care of the Firefox scrolling issue entirely. This release adds two more patches to address that.
911
912## 4.10.0 (2014-12-29)
913
914Emergency single-patch update to 4.9\. Fixes Firefox-specific problem where the cursor could end up behind the horizontal scrollbar.
915
916## 4.9.0 (2014-12-23)
917
918* Overhauled scroll bar handling. Add pluggable [scrollbar implementations](http://codemirror.net/demo/simplescrollbars.html).
919* Tweaked behavior for the [completion addons](http://codemirror.net/doc/manual.html#addon_show-hint) to not take text after cursor into account.
920* Two new optional features in the [merge addon](http://codemirror.net/doc/manual.html#addon_merge): aligning editors, and folding unchanged text.
921* New modes: [Dart](http://codemirror.net/mode/dart/index.html), [EBNF](http://codemirror.net/mode/ebnf/index.html), [spreadsheet](http://codemirror.net/mode/spreadsheet/index.html), and [Soy](http://codemirror.net/mode/soy/index.html).
922* New [addon](http://codemirror.net/demo/panel.html) to show persistent panels below/above an editor.
923* New themes: [zenburn](http://codemirror.net/demo/theme.html#zenburn) and [tomorrow night bright](http://codemirror.net/demo/theme.html#tomorrow-night-bright).
924* Allow ctrl-click to clear existing cursors.
925* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.8.0...4.9.0).
926
927## 4.8.0 (2014-11-22)
928
929* Built-in support for [multi-stroke key bindings](http://codemirror.net/doc/manual.html#normalizeKeyMap).
930* New method: [`getLineTokens`](http://codemirror.net/doc/manual.html#getLineTokens).
931* New modes: [dockerfile](http://codemirror.net/mode/dockerfile/index.html), [IDL](http://codemirror.net/mode/idl/index.html), [Objective C](http://codemirror.net/mode/clike/index.html) (crude).
932* Support styling of gutter backgrounds, allow `"gutter"` styles in [`addLineClass`](http://codemirror.net/doc/manual.html#addLineClass).
933* Many improvements to the [Vim mode](http://codemirror.net/demo/vim.html), rewritten visual mode.
934* Improvements to modes: [gfm](http://codemirror.net/mode/gfm/index.html) (strikethrough), [SPARQL](http://codemirror.net/mode/sparql/index.html) (version 1.1 support), and [sTeX](http://codemirror.net/mode/stex/index.html) (no more runaway math mode).
935* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.7.0...4.8.0).
936
937## 4.7.0 (2014-10-20)
938
939* **Incompatible**: The [lint addon](http://codemirror.net/demo/lint.html) now passes the editor's value as first argument to asynchronous lint functions, for consistency. The editor is still passed, as fourth argument.
940* Improved handling of unicode identifiers in modes for languages that support them.
941* More mode improvements: [CoffeeScript](http://codemirror.net/mode/coffeescript/index.html) (indentation), [Verilog](http://codemirror.net/mode/verilog/index.html) (indentation), [Scala](http://codemirror.net/mode/clike/index.html) (indentation, triple-quoted strings), and [PHP](http://codemirror.net/mode/php/index.html) (interpolated variables in heredoc strings).
942* New modes: [Textile](http://codemirror.net/mode/textile/index.html) and [Tornado templates](http://codemirror.net/mode/tornado/index.html).
943* Experimental new [way to define modes](http://codemirror.net/demo/simplemode.html).
944* Improvements to the [Vim bindings](http://codemirror.net/demo/vim.html): Arbitrary insert mode key mappings are now possible, and text objects are supported in visual mode.
945* The mode [meta-information file](http://codemirror.net/mode/meta.js) now includes information about file extensions, and [helper functions](http://codemirror.net/doc/manual.html#addon_meta) `findModeByMIME` and `findModeByExtension`.
946* New logo!
947* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.6.0...4.7.0).
948
949## 4.6.0 (2014-09-19)
950
951* New mode: [Modelica](http://codemirror.net/mode/modelica/index.html)
952* New method: [`findWordAt`](http://codemirror.net/doc/manual.html#findWordAt)
953* Make it easier to [use text background styling](http://codemirror.net/demo/markselection.html)
954* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.5.0...4.6.0).
955
956## 4.5.0 (2014-08-21)
957
958* Fix several serious bugs with horizontal scrolling
959* New mode: [Slim](http://codemirror.net/mode/slim/index.html)
960* New command: [`goLineLeftSmart`](http://codemirror.net/doc/manual.html#command_goLineLeftSmart)
961* More fixes and extensions for the [Vim](http://codemirror.net/demo/vim.html) visual block mode
962* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.4.0...4.5.0).
963
964## 4.4.0 (2014-07-21)
965
966* **Note:** Some events might now fire in slightly different order (`"change"` is still guaranteed to fire before `"cursorActivity"`)
967* Nested operations in multiple editors are now synced (complete at same time, reducing DOM reflows)
968* Visual block mode for [vim](http://codemirror.net/demo/vim.html) (<C-v>) is nearly complete
969* New mode: [Kotlin](http://codemirror.net/mode/kotlin/index.html)
970* Better multi-selection paste for text copied from multiple CodeMirror selections
971* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.3.0...4.4.0).
972
973## 4.3.0 (2014-06-23)
974
975* Several [vim bindings](http://codemirror.net/demo/vim.html) improvements: search and exCommand history, global flag for `:substitute`, `:global` command.
976* Allow hiding the cursor by setting [`cursorBlinkRate`](http://codemirror.net/doc/manual.html#option_cursorBlinkRate) to a negative value.
977* Make gutter markers themeable, use this in foldgutter.
978* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.2.0...4.3.0).
979
980## 4.2.0 (2014-05-19)
981
982* Fix problem where some modes were broken by the fact that empty tokens were forbidden.
983* Several fixes to context menu handling.
984* On undo, scroll _change_, not cursor, into view.
985* Rewritten [Jade](http://codemirror.net/mode/jade/index.html) mode.
986* Various improvements to [Shell](http://codemirror.net/mode/shell/index.html) (support for more syntax) and [Python](http://codemirror.net/mode/python/index.html) (better indentation) modes.
987* New mode: [Cypher](http://codemirror.net/mode/cypher/index.html).
988* New theme: [Neo](http://codemirror.net/demo/theme.html#neo).
989* Support direct styling options (color, line style, width) in the [rulers](http://codemirror.net/doc/manual.html#addon_rulers) addon.
990* Recognize per-editor configuration for the [show-hint](http://codemirror.net/doc/manual.html#addon_show-hint) and [foldcode](http://codemirror.net/doc/manual.html#addon_foldcode) addons.
991* More intelligent scanning for existing close tags in [closetag](http://codemirror.net/doc/manual.html#addon_closetag) addon.
992* In the [Vim bindings](http://codemirror.net/demo/vim.html): Fix bracket matching, support case conversion in visual mode, visual paste, append action.
993* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.1.0...4.2.0).
994
995## 4.1.0 (2014-04-22)
996
997* _Slightly incompatible_: The [`"cursorActivity"`](http://codemirror.net/doc/manual.html#event_cursorActivity) event now fires after all other events for the operation (and only for handlers that were actually registered at the time the activity happened).
998* New command: [`insertSoftTab`](http://codemirror.net/doc/manual.html#command_insertSoftTab).
999* New mode: [Django](http://codemirror.net/mode/django/index.html).
1000* Improved modes: [Verilog](http://codemirror.net/mode/verilog/index.html) (rewritten), [Jinja2](http://codemirror.net/mode/jinja2/index.html), [Haxe](http://codemirror.net/mode/haxe/index.html), [PHP](http://codemirror.net/mode/php/index.html) (string interpolation highlighted), [JavaScript](http://codemirror.net/mode/javascript/index.html) (indentation of trailing else, template strings), [LiveScript](http://codemirror.net/mode/livescript/index.html) (multi-line strings).
1001* Many small issues from the 3.x→4.x transition were found and fixed.
1002* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.0.3...4.1.0).
1003
1004## 3.24.0 (2014-04-22)
1005
1006Merges the improvements from 4.1 that could easily be applied to the 3.x code. Also improves the way the editor size is updated when line widgets change.
1007
1008## 3.23.0 (2014-03-20)
1009
1010* In the [XML mode](http://codemirror.net/mode/xml/index.html), add `brackets` style to angle brackets, fix case-sensitivity of tags for HTML.
1011* New mode: [Dylan](http://codemirror.net/mode/dylan/index.html).
1012* Many improvements to the [Vim bindings](http://codemirror.net/demo/vim.html).
1013
1014## 3.22.0 (2014-02-21)
1015
1016* Adds the [`findMarks`](http://codemirror.net/doc/manual.html#findMarks) method.
1017* New addons: [rulers](http://codemirror.net/doc/manual.html#addon_rulers), markdown-fold, yaml-lint.
1018* New theme: [mdn-like](http://codemirror.net/demo/theme.html#mdn-like).
1019* New mode: [Solr](http://codemirror.net/mode/solr/index.html).
1020* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.21.0...3.22.0).
1021
1022## 3.21.0 (2014-01-16)
1023
1024* Auto-indenting a block will no longer add trailing whitespace to blank lines.
1025* Marking text has a new option [`clearWhenEmpty`](http://codemirror.net/doc/manual.html#markText) to control auto-removal.
1026* Several bugfixes in the handling of bidirectional text.
1027* The [XML](http://codemirror.net/mode/xml/index.html) and [CSS](http://codemirror.net/mode/css/index.html) modes were largely rewritten. [LESS](http://codemirror.net/mode/css/less.html) support was added to the CSS mode.
1028* The OCaml mode was moved to an [mllike](http://codemirror.net/mode/mllike/index.html) mode, F# support added.
1029* Make it possible to fetch multiple applicable helper values with [`getHelpers`](http://codemirror.net/doc/manual.html#getHelpers), and to register helpers matched on predicates with [`registerGlobalHelper`](http://codemirror.net/doc/manual.html#registerGlobalHelper).
1030* New theme [pastel-on-dark](http://codemirror.net/demo/theme.html#pastel-on-dark).
1031* Better ECMAScript 6 support in [JavaScript](http://codemirror.net/mode/javascript/index.html) mode.
1032* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.20.0...3.21.0).
1033
1034## 3.20.0 (2013-11-21)
1035
1036* New modes: [Julia](http://codemirror.net/mode/julia/index.html) and [PEG.js](http://codemirror.net/mode/pegjs/index.html).
1037* Support ECMAScript 6 in the [JavaScript mode](http://codemirror.net/mode/javascript/index.html).
1038* Improved indentation for the [CoffeeScript mode](http://codemirror.net/mode/coffeescript/index.html).
1039* Make non-printable-character representation [configurable](http://codemirror.net/doc/manual.html#option_specialChars).
1040* Add ‘notification’ functionality to [dialog](http://codemirror.net/doc/manual.html#addon_dialog) addon.
1041* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.19.0...3.20.0).
1042
1043## 3.19.0 (2013-10-21)
1044
1045* New modes: [Eiffel](http://codemirror.net/mode/eiffel/index.html), [Gherkin](http://codemirror.net/mode/gherkin/index.html), [MSSQL dialect](http://codemirror.net/mode/sql/?mime=text/x-mssql).
1046* New addons: [hardwrap](http://codemirror.net/doc/manual.html#addon_hardwrap), [sql-hint](http://codemirror.net/doc/manual.html#addon_sql-hint).
1047* New theme: [MBO](http://codemirror.net/demo/theme.html#mbo).
1048* Add [support](http://codemirror.net/doc/manual.html#token_style_line) for line-level styling from mode tokenizers.
1049* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.18.0...3.19.0).
1050
1051## 3.18.0 (2013-09-23)
1052
1053Emergency release to fix a problem in 3.17 where `.setOption("lineNumbers", false)` would raise an error.
1054
1055## 3.17.0 (2013-09-23)
1056
1057* New modes: [Fortran](http://codemirror.net/mode/fortran/index.html), [Octave](http://codemirror.net/mode/octave/index.html) (Matlab), [TOML](http://codemirror.net/mode/toml/index.html), and [DTD](http://codemirror.net/mode/dtd/index.html).
1058* New addons: [`css-lint`](http://codemirror.net/addon/lint/css-lint.js), [`css-hint`](http://codemirror.net/doc/manual.html#addon_css-hint).
1059* Improve resilience to CSS 'frameworks' that globally mess up `box-sizing`.
1060* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.16.0...3.17.0).
1061
1062## 3.16.0 (2013-08-21)
1063
1064* The whole codebase is now under a single [license](http://codemirror.net/LICENSE) file.
1065* The project page was overhauled and redesigned.
1066* New themes: [Paraiso](http://codemirror.net/demo/theme.html#paraiso-dark) ([light](http://codemirror.net/demo/theme.html#paraiso-light)), [The Matrix](http://codemirror.net/demo/theme.html#the-matrix).
1067* Improved interaction between themes and [active-line](http://codemirror.net/doc/manual.html#addon_active-line)/[matchbrackets](http://codemirror.net/doc/manual.html#addon_matchbrackets) addons.
1068* New [folding](http://codemirror.net/doc/manual.html#addon_foldcode) function `CodeMirror.fold.comment`.
1069* Added [fullscreen](http://codemirror.net/doc/manual.html#addon_fullscreen) addon.
1070* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.15.0...3.16.0).
1071
1072## 3.15.0 (2013-07-29)
1073
1074* New modes: [Jade](http://codemirror.net/mode/jade/index.html), [Nginx](http://codemirror.net/mode/nginx/index.html).
1075* New addons: [Tern](http://codemirror.net/demo/tern.html), [matchtags](http://codemirror.net/doc/manual.html#addon_matchtags), and [foldgutter](http://codemirror.net/doc/manual.html#addon_foldgutter).
1076* Introduced [_helper_](http://codemirror.net/doc/manual.html#getHelper) concept ([context](https://groups.google.com/forum/#!msg/codemirror/cOc0xvUUEUU/nLrX1-qnidgJ)).
1077* New method: [`getModeAt`](http://codemirror.net/doc/manual.html#getModeAt).
1078* New themes: base16 [dark](http://codemirror.net/demo/theme.html#base16-dark)/[light](http://codemirror.net/demo/theme.html#base16-light), 3024 [dark](http://codemirror.net/demo/theme.html#3024-night)/[light](http://codemirror.net/demo/theme.html#3024-day), [tomorrow-night](http://codemirror.net/demo/theme.html#tomorrow-night-eighties).
1079* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.14.0...3.15.0).
1080
1081## 3.14.0 (2013-06-20)
1082
1083* New addons: [trailing space highlight](http://codemirror.net/doc/manual.html#addon_trailingspace), [XML completion](http://codemirror.net/doc/manual.html#addon_xml-hint) (rewritten), and [diff merging](http://codemirror.net/doc/manual.html#addon_merge).
1084* [`markText`](http://codemirror.net/doc/manual.html#markText) and [`addLineWidget`](http://codemirror.net/doc/manual.html#addLineWidget) now take a `handleMouseEvents` option.
1085* New methods: [`lineAtHeight`](http://codemirror.net/doc/manual.html#lineAtHeight), [`getTokenTypeAt`](http://codemirror.net/doc/manual.html#getTokenTypeAt).
1086* More precise cleanness-tracking using [`changeGeneration`](http://codemirror.net/doc/manual.html#changeGeneration) and [`isClean`](http://codemirror.net/doc/manual.html#isClean).
1087* Many extensions to [Emacs](http://codemirror.net/demo/emacs.html) mode (prefixes, more navigation units, and more).
1088* New events [`"keyHandled"`](http://codemirror.net/doc/manual.html#event_keyHandled) and [`"inputRead"`](http://codemirror.net/doc/manual.html#event_inputRead).
1089* Various improvements to [Ruby](http://codemirror.net/mode/ruby/index.html), [Smarty](http://codemirror.net/mode/smarty/index.html), [SQL](http://codemirror.net/mode/sql/index.html), and [Vim](http://codemirror.net/demo/vim.html) modes.
1090* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.13.0...3.14.0).
1091
1092## 3.13.0 (2013-05-20)
1093
1094* New modes: [COBOL](http://codemirror.net/mode/cobol/index.html) and [HAML](http://codemirror.net/mode/haml/index.html).
1095* New options: [`cursorScrollMargin`](http://codemirror.net/doc/manual.html#option_cursorScrollMargin) and [`coverGutterNextToScrollbar`](http://codemirror.net/doc/manual.html#option_coverGutterNextToScrollbar).
1096* New addon: [commenting](http://codemirror.net/doc/manual.html#addon_comment).
1097* More features added to the [Vim keymap](http://codemirror.net/demo/vim.html).
1098* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.12...3.13.0).
1099
1100## 3.12.0 (2013-04-19)
1101
1102* New mode: [GNU assembler](http://codemirror.net/mode/gas/index.html).
1103* New options: [`maxHighlightLength`](http://codemirror.net/doc/manual.html#option_maxHighlightLength) and [`historyEventDelay`](http://codemirror.net/doc/manual.html#option_historyEventDelay).
1104* Added [`addToHistory`](http://codemirror.net/doc/manual.html#mark_addToHistory) option for `markText`.
1105* Various fixes to JavaScript tokenization and indentation corner cases.
1106* Further improvements to the vim mode.
1107* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.11...v3.12).
1108
1109## 3.11.0 (2013-03-20)
1110
1111* **Removed code:** `collapserange`, `formatting`, and `simple-hint` addons. `plsql` and `mysql` modes (use [`sql`](http://codemirror.net/mode/sql/index.html) mode).
1112* **Moved code:** the range-finding functions for folding now have [their own files](http://codemirror.net/addon/fold/).
1113* **Changed interface:** the [`continuecomment`](http://codemirror.net/doc/manual.html#addon_continuecomment) addon now exposes an option, rather than a command.
1114* New modes: [SCSS](http://codemirror.net/mode/css/scss.html), [Tcl](http://codemirror.net/mode/tcl/index.html), [LiveScript](http://codemirror.net/mode/livescript/index.html), and [mIRC](http://codemirror.net/mode/mirc/index.html).
1115* New addons: [`placeholder`](http://codemirror.net/demo/placeholder.html), [HTML completion](http://codemirror.net/demo/html5complete.html).
1116* New methods: [`hasFocus`](http://codemirror.net/doc/manual.html#hasFocus), [`defaultCharWidth`](http://codemirror.net/doc/manual.html#defaultCharWidth).
1117* New events: [`beforeCursorEnter`](http://codemirror.net/doc/manual.html#event_beforeCursorEnter), [`renderLine`](http://codemirror.net/doc/manual.html#event_renderLine).
1118* Many improvements to the [`show-hint`](http://codemirror.net/doc/manual.html#addon_show-hint) completion dialog addon.
1119* Tweak behavior of by-word cursor motion.
1120* Further improvements to the [vim mode](http://codemirror.net/demo/vim.html).
1121* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.1...v3.11).
1122
1123## 3.02.0 (2013-01-25)
1124
1125Single-bugfix release. Fixes a problem that prevents CodeMirror instances from being garbage-collected after they become unused.
1126
1127## 3.01.0 (2013-01-21)
1128
1129* Move all add-ons into an organized directory structure under [`/addon`](http://codemirror.net/addon/). **You might have to adjust your paths.**
1130* New modes: [D](http://codemirror.net/mode/d/index.html), [Sass](http://codemirror.net/mode/sass/index.html), [APL](http://codemirror.net/mode/apl/index.html), [SQL](http://codemirror.net/mode/sql/index.html) (configurable), and [Asterisk](http://codemirror.net/mode/asterisk/index.html).
1131* Several bugfixes in right-to-left text support.
1132* Add [`rtlMoveVisually`](http://codemirror.net/doc/manual.html#option_rtlMoveVisually) option.
1133* Improvements to vim keymap.
1134* Add built-in (lightweight) [overlay mode](http://codemirror.net/doc/manual.html#addOverlay) support.
1135* Support `showIfHidden` option for [line widgets](http://codemirror.net/doc/manual.html#addLineWidget).
1136* Add simple [Python hinter](http://codemirror.net/doc/manual.html#addon_python-hint).
1137* Bring back the [`fixedGutter`](http://codemirror.net/doc/manual.html#option_fixedGutter) option.
1138* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0...v3.01).
1139
1140## 3.1.0 (2013-02-21)
1141
1142* **Incompatible:** key handlers may now _return_, rather than _throw_ `CodeMirror.Pass` to signal they didn't handle the key.
1143* Make documents a [first-class construct](http://codemirror.net/doc/manual.html#api_doc), support split views and subviews.
1144* Add a [new module](http://codemirror.net/doc/manual.html#addon_show-hint) for showing completion hints. Deprecate `simple-hint.js`.
1145* Extend [htmlmixed mode](http://codemirror.net/mode/htmlmixed/index.html) to allow custom handling of script types.
1146* Support an `insertLeft` option to [`setBookmark`](http://codemirror.net/doc/manual.html#setBookmark).
1147* Add an [`eachLine`](http://codemirror.net/doc/manual.html#eachLine) method to iterate over a document.
1148* New addon modules: [selection marking](http://codemirror.net/demo/markselection.html), [linting](http://codemirror.net/demo/lint.html), and [automatic bracket closing](http://codemirror.net/demo/closebrackets.html).
1149* Add [`"beforeChange"`](http://codemirror.net/doc/manual.html#event_beforeChange) and [`"beforeSelectionChange"`](http://codemirror.net/doc/manual.html#event_beforeSelectionChange) events.
1150* Add [`"hide"`](http://codemirror.net/doc/manual.html#event_hide) and [`"unhide"`](http://codemirror.net/doc/manual.html#event_unhide) events to marked ranges.
1151* Fix [`coordsChar`](http://codemirror.net/doc/manual.html#coordsChar)'s interpretation of its argument to match the documentation.
1152* New modes: [Turtle](http://codemirror.net/mode/turtle/index.html) and [Q](http://codemirror.net/mode/q/index.html).
1153* Further improvements to the [vim mode](http://codemirror.net/demo/vim.html).
1154* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.01...v3.1).
1155
1156## 3.0.0 (2012-12-10)
1157
1158**New major version**. Only partially backwards-compatible. See the [upgrading guide](http://codemirror.net/doc/upgrade_v3.html) for more information. Changes since release candidate 2:
1159
1160* Rewritten VIM mode.
1161* Fix a few minor scrolling and sizing issues.
1162* Work around Safari segfault when dragging.
1163* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0rc2...v3.0).
1164
1165## 2.38.0 (2013-01-21)
1166
1167Integrate some bugfixes, enhancements to the vim keymap, and new modes ([D](http://codemirror.net/mode/d/index.html), [Sass](http://codemirror.net/mode/sass/index.html), [APL](http://codemirror.net/mode/apl/index.html)) from the v3 branch.
1168
1169## 2.37.0 (2012-12-20)
1170
1171* New mode: [SQL](http://codemirror.net/mode/sql/index.html) (will replace [plsql](http://codemirror.net/mode/plsql/index.html) and [mysql](http://codemirror.net/mode/mysql/index.html) modes).
1172* Further work on the new VIM mode.
1173* Fix Cmd/Ctrl keys on recent Operas on OS X.
1174* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.36...v2.37).
1175
1176## 2.36.0 (2012-11-20)
1177
1178* New mode: [Z80 assembly](http://codemirror.net/mode/z80/index.html).
1179* New theme: [Twilight](http://codemirror.net/demo/theme.html#twilight).
1180* Add command-line compression helper.
1181* Make [`scrollIntoView`](http://codemirror.net/doc/manual.html#scrollIntoView) public.
1182* Add [`defaultTextHeight`](http://codemirror.net/doc/manual.html#defaultTextHeight) method.
1183* Various extensions to the vim keymap.
1184* Make [PHP mode](http://codemirror.net/mode/php/index.html) build on [mixed HTML mode](http://codemirror.net/mode/htmlmixed/index.html).
1185* Add [comment-continuing](http://codemirror.net/doc/manual.html#addon_continuecomment) add-on.
1186* Full [list of patches](http://codemirror.net/https://github.com/codemirror/CodeMirror/compare/v2.35...v2.36).
1187
1188## 2.35.0 (2012-10-22)
1189
1190* New (sub) mode: [TypeScript](http://codemirror.net/mode/javascript/typescript.html).
1191* Don't overwrite (insert key) when pasting.
1192* Fix several bugs in [`markText`](http://codemirror.net/doc/manual.html#markText)/undo interaction.
1193* Better indentation of JavaScript code without semicolons.
1194* Add [`defineInitHook`](http://codemirror.net/doc/manual.html#defineInitHook) function.
1195* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.34...v2.35).
1196
1197## 2.34.0 (2012-09-19)
1198
1199* New mode: [Common Lisp](http://codemirror.net/mode/commonlisp/index.html).
1200* Fix right-click select-all on most browsers.
1201* Change the way highlighting happens:
1202 Saves memory and CPU cycles.
1203 `compareStates` is no longer needed.
1204 `onHighlightComplete` no longer works.
1205* Integrate mode (Markdown, XQuery, CSS, sTex) tests in central testsuite.
1206* Add a [`CodeMirror.version`](http://codemirror.net/doc/manual.html#version) property.
1207* More robust handling of nested modes in [formatting](http://codemirror.net/demo/formatting.html) and [closetag](http://codemirror.net/demo/closetag.html) plug-ins.
1208* Un/redo now preserves [marked text](http://codemirror.net/doc/manual.html#markText) and bookmarks.
1209* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.33...v2.34) of patches.
1210
1211## 2.33.0 (2012-08-23)
1212
1213* New mode: [Sieve](http://codemirror.net/mode/sieve/index.html).
1214* New [`getViewPort`](http://codemirror.net/doc/manual.html#getViewport) and [`onViewportChange`](http://codemirror.net/doc/manual.html#option_onViewportChange) API.
1215* [Configurable](http://codemirror.net/doc/manual.html#option_cursorBlinkRate) cursor blink rate.
1216* Make binding a key to `false` disabling handling (again).
1217* Show non-printing characters as red dots.
1218* More tweaks to the scrolling model.
1219* Expanded testsuite. Basic linter added.
1220* Remove most uses of `innerHTML`. Remove `CodeMirror.htmlEscape`.
1221* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.32...v2.33) of patches.
1222
1223## 2.32.0 (2012-07-23)
1224
1225Emergency fix for a bug where an editor with line wrapping on IE will break when there is _no_ scrollbar.
1226
1227## 2.31.0 (2012-07-20)
1228
1229* New modes: [OCaml](http://codemirror.net/mode/ocaml/index.html), [Haxe](http://codemirror.net/mode/haxe/index.html), and [VB.NET](http://codemirror.net/mode/vb/index.html).
1230* Several fixes to the new scrolling model.
1231* Add a [`setSize`](http://codemirror.net/doc/manual.html#setSize) method for programmatic resizing.
1232* Add [`getHistory`](http://codemirror.net/doc/manual.html#getHistory) and [`setHistory`](http://codemirror.net/doc/manual.html#setHistory) methods.
1233* Allow custom line separator string in [`getValue`](http://codemirror.net/doc/manual.html#getValue) and [`getRange`](http://codemirror.net/doc/manual.html#getRange).
1234* Support double- and triple-click drag, double-clicking whitespace.
1235* And more... [(all patches)](https://github.com/codemirror/CodeMirror/compare/v2.3...v2.31)
1236
1237## 2.30.0 (2012-06-22)
1238
1239* **New scrollbar implementation**. Should flicker less. Changes DOM structure of the editor.
1240* New theme: [vibrant-ink](http://codemirror.net/demo/theme.html#vibrant-ink).
1241* Many extensions to the VIM keymap (including text objects).
1242* Add [mode-multiplexing](http://codemirror.net/demo/multiplex.html) utility script.
1243* Fix bug where right-click paste works in read-only mode.
1244* Add a [`getScrollInfo`](http://codemirror.net/doc/manual.html#getScrollInfo) method.
1245* Lots of other [fixes](https://github.com/codemirror/CodeMirror/compare/v2.25...v2.3).
1246
1247## 2.25.0 (2012-05-23)
1248
1249* New mode: [Erlang](http://codemirror.net/mode/erlang/index.html).
1250* **Remove xmlpure mode** (use [xml.js](http://codemirror.net/mode/xml/index.html)).
1251* Fix line-wrapping in Opera.
1252* Fix X Windows middle-click paste in Chrome.
1253* Fix bug that broke pasting of huge documents.
1254* Fix backspace and tab key repeat in Opera.
1255
1256## 2.24.0 (2012-04-23)
1257
1258* **Drop support for Internet Explorer 6**.
1259* New modes: [Shell](http://codemirror.net/mode/shell/index.html), [Tiki wiki](http://codemirror.net/mode/tiki/index.html), [Pig Latin](http://codemirror.net/mode/pig/index.html).
1260* New themes: [Ambiance](http://codemirror.net/demo/theme.html#ambiance), [Blackboard](http://codemirror.net/demo/theme.html#blackboard).
1261* More control over drag/drop with [`dragDrop`](http://codemirror.net/doc/manual.html#option_dragDrop) and [`onDragEvent`](http://codemirror.net/doc/manual.html#option_onDragEvent) options.
1262* Make HTML mode a bit less pedantic.
1263* Add [`compoundChange`](http://codemirror.net/doc/manual.html#compoundChange) API method.
1264* Several fixes in undo history and line hiding.
1265* Remove (broken) support for `catchall` in key maps, add `nofallthrough` boolean field instead.
1266
1267## 2.23.0 (2012-03-26)
1268
1269* Change **default binding for tab**. Starting in 2.23, these bindings are default:
1270 * Tab: Insert tab character
1271 * Shift-tab: Reset line indentation to default
1272 * Ctrl/Cmd-[: Reduce line indentation (old tab behaviour)
1273 * Ctrl/Cmd-]: Increase line indentation (old shift-tab behaviour)
1274* New modes: [XQuery](http://codemirror.net/mode/xquery/index.html) and [VBScript](http://codemirror.net/mode/vbscript/index.html).
1275* Two new themes: [lesser-dark](http://codemirror.net/mode/less/index.html) and [xq-dark](http://codemirror.net/mode/xquery/index.html).
1276* Differentiate between background and text styles in [`setLineClass`](http://codemirror.net/doc/manual.html#setLineClass).
1277* Fix drag-and-drop in IE9+.
1278* Extend [`charCoords`](http://codemirror.net/doc/manual.html#charCoords) and [`cursorCoords`](http://codemirror.net/doc/manual.html#cursorCoords) with a `mode` argument.
1279* Add [`autofocus`](http://codemirror.net/doc/manual.html#option_autofocus) option.
1280* Add [`findMarksAt`](http://codemirror.net/doc/manual.html#findMarksAt) method.
1281
1282## 2.22.0 (2012-02-27)
1283
1284* Allow [key handlers](http://codemirror.net/doc/manual.html#keymaps) to pass up events, allow binding characters.
1285* Add [`autoClearEmptyLines`](http://codemirror.net/doc/manual.html#option_autoClearEmptyLines) option.
1286* Properly use tab stops when rendering tabs.
1287* Make PHP mode more robust.
1288* Support indentation blocks in [code folder](http://codemirror.net/doc/manual.html#addon_foldcode).
1289* Add a script for [highlighting instances of the selection](http://codemirror.net/doc/manual.html#addon_match-highlighter).
1290* New [.properties](http://codemirror.net/mode/properties/index.html) mode.
1291* Fix many bugs.
1292
1293## 2.21.0 (2012-01-27)
1294
1295* Added [LESS](http://codemirror.net/mode/less/index.html), [MySQL](http://codemirror.net/mode/mysql/index.html), [Go](http://codemirror.net/mode/go/index.html), and [Verilog](http://codemirror.net/mode/verilog/index.html) modes.
1296* Add [`smartIndent`](http://codemirror.net/doc/manual.html#option_smartIndent) option.
1297* Support a cursor in [`readOnly`](http://codemirror.net/doc/manual.html#option_readOnly)-mode.
1298* Support assigning multiple styles to a token.
1299* Use a new approach to drawing the selection.
1300* Add [`scrollTo`](http://codemirror.net/doc/manual.html#scrollTo) method.
1301* Allow undo/redo events to span non-adjacent lines.
1302* Lots and lots of bugfixes.
1303
1304## 2.20.0 (2011-12-20)
1305
1306* Slightly incompatible API changes. Read [this](http://codemirror.net/doc/upgrade_v2.2.html).
1307* New approach to [binding](http://codemirror.net/doc/manual.html#option_extraKeys) keys, support for [custom bindings](http://codemirror.net/doc/manual.html#option_keyMap).
1308* Support for overwrite (insert).
1309* [Custom-width](http://codemirror.net/doc/manual.html#option_tabSize) and [stylable](http://codemirror.net/demo/visibletabs.html) tabs.
1310* Moved more code into [add-on scripts](http://codemirror.net/doc/manual.html#addons).
1311* Support for sane vertical cursor movement in wrapped lines.
1312* More reliable handling of editing [marked text](http://codemirror.net/doc/manual.html#markText).
1313* Add minimal [emacs](http://codemirror.net/demo/emacs.html) and [vim](http://codemirror.net/demo/vim.html) bindings.
1314* Rename `coordsFromIndex` to [`posFromIndex`](http://codemirror.net/doc/manual.html#posFromIndex), add [`indexFromPos`](http://codemirror.net/doc/manual.html#indexFromPos) method.
1315
1316## 2.18.0 (2011-11-21)
1317
1318Fixes `TextMarker.clear`, which is broken in 2.17.
1319
1320## 2.17.0 (2011-11-21)
1321
1322* Add support for [line wrapping](http://codemirror.net/doc/manual.html#option_lineWrapping) and [code folding](http://codemirror.net/doc/manual.html#hideLine).
1323* Add [Github-style Markdown](http://codemirror.net/mode/gfm/index.html) mode.
1324* Add [Monokai](http://codemirror.net/theme/monokai.css) and [Rubyblue](http://codemirror.net/theme/rubyblue.css) themes.
1325* Add [`setBookmark`](http://codemirror.net/doc/manual.html#setBookmark) method.
1326* Move some of the demo code into reusable components under [`lib/util`](http://codemirror.net/addon/).
1327* Make screen-coord-finding code faster and more reliable.
1328* Fix drag-and-drop in Firefox.
1329* Improve support for IME.
1330* Speed up content rendering.
1331* Fix browser's built-in search in Webkit.
1332* Make double- and triple-click work in IE.
1333* Various fixes to modes.
1334
1335## 2.16.0 (2011-10-27)
1336
1337* Add [Perl](http://codemirror.net/mode/perl/index.html), [Rust](http://codemirror.net/mode/rust/index.html), [TiddlyWiki](http://codemirror.net/mode/tiddlywiki/index.html), and [Groovy](http://codemirror.net/mode/groovy/index.html) modes.
1338* Dragging text inside the editor now moves, rather than copies.
1339* Add a [`coordsFromIndex`](http://codemirror.net/doc/manual.html#coordsFromIndex) method.
1340* **API change**: `setValue` now no longer clears history. Use [`clearHistory`](http://codemirror.net/doc/manual.html#clearHistory) for that.
1341* **API change**: [`markText`](http://codemirror.net/doc/manual.html#markText) now returns an object with `clear` and `find` methods. Marked text is now more robust when edited.
1342* Fix editing code with tabs in Internet Explorer.
1343
1344## 2.15.0 (2011-09-26)
1345
1346Fix bug that snuck into 2.14: Clicking the character that currently has the cursor didn't re-focus the editor.
1347
1348## 2.14.0 (2011-09-26)
1349
1350* Add [Clojure](http://codemirror.net/mode/clojure/index.html), [Pascal](http://codemirror.net/mode/pascal/index.html), [NTriples](http://codemirror.net/mode/ntriples/index.html), [Jinja2](http://codemirror.net/mode/jinja2/index.html), and [Markdown](http://codemirror.net/mode/markdown/index.html) modes.
1351* Add [Cobalt](http://codemirror.net/theme/cobalt.css) and [Eclipse](http://codemirror.net/theme/eclipse.css) themes.
1352* Add a [`fixedGutter`](http://codemirror.net/doc/manual.html#option_fixedGutter) option.
1353* Fix bug with `setValue` breaking cursor movement.
1354* Make gutter updates much more efficient.
1355* Allow dragging of text out of the editor (on modern browsers).
1356
1357## 2.13.0 (2011-08-23)
1358
1359* Add [Ruby](http://codemirror.net/mode/ruby/index.html), [R](http://codemirror.net/mode/r/index.html), [CoffeeScript](http://codemirror.net/mode/coffeescript/index.html), and [Velocity](http://codemirror.net/mode/velocity/index.html) modes.
1360* Add [`getGutterElement`](http://codemirror.net/doc/manual.html#getGutterElement) to API.
1361* Several fixes to scrolling and positioning.
1362* Add [`smartHome`](http://codemirror.net/doc/manual.html#option_smartHome) option.
1363* Add an experimental [pure XML](http://codemirror.net/mode/xmlpure/index.html) mode.
1364
1365## 2.12.0 (2011-07-25)
1366
1367* Add a [SPARQL](http://codemirror.net/mode/sparql/index.html) mode.
1368* Fix bug with cursor jumping around in an unfocused editor in IE.
1369* Allow key and mouse events to bubble out of the editor. Ignore widget clicks.
1370* Solve cursor flakiness after undo/redo.
1371* Fix block-reindent ignoring the last few lines.
1372* Fix parsing of multi-line attrs in XML mode.
1373* Use `innerHTML` for HTML-escaping.
1374* Some fixes to indentation in C-like mode.
1375* Shrink horiz scrollbars when long lines removed.
1376* Fix width feedback loop bug that caused the width of an inner DIV to shrink.
1377
1378## 2.11.0 (2011-07-04)
1379
1380* Add a [Scheme mode](http://codemirror.net/mode/scheme/index.html).
1381* Add a `replace` method to search cursors, for cursor-preserving replacements.
1382* Make the [C-like mode](http://codemirror.net/mode/clike/index.html) mode more customizable.
1383* Update XML mode to spot mismatched tags.
1384* Add `getStateAfter` API and `compareState` mode API methods for finer-grained mode magic.
1385* Add a `getScrollerElement` API method to manipulate the scrolling DIV.
1386* Fix drag-and-drop for Firefox.
1387* Add a C# configuration for the [C-like mode](http://codemirror.net/mode/clike/index.html).
1388* Add [full-screen editing](http://codemirror.net/demo/fullscreen.html) and [mode-changing](http://codemirror.net/demo/changemode.html) demos.
1389
1390## 2.10.0 (2011-06-07)
1391
1392Add a [theme](http://codemirror.net/doc/manual.html#option_theme) system ([demo](http://codemirror.net/demo/theme.html)). Note that this is not backwards-compatible—you'll have to update your styles and modes!
1393
1394## 2.2.0 (2011-06-07)
1395
1396* Add a [Lua mode](http://codemirror.net/mode/lua/index.html).
1397* Fix reverse-searching for a regexp.
1398* Empty lines can no longer break highlighting.
1399* Rework scrolling model (the outer wrapper no longer does the scrolling).
1400* Solve horizontal jittering on long lines.
1401* Add [runmode.js](http://codemirror.net/demo/runmode.html).
1402* Immediately re-highlight text when typing.
1403* Fix problem with 'sticking' horizontal scrollbar.
1404
1405## 2.1.0 (2011-05-26)
1406
1407* Add a [Smalltalk mode](http://codemirror.net/mode/smalltalk/index.html).
1408* Add a [reStructuredText mode](http://codemirror.net/mode/rst/index.html).
1409* Add a [Python mode](http://codemirror.net/mode/python/index.html).
1410* Add a [PL/SQL mode](http://codemirror.net/mode/plsql/index.html).
1411* `coordsChar` now works
1412* Fix a problem where `onCursorActivity` interfered with `onChange`.
1413* Fix a number of scrolling and mouse-click-position glitches.
1414* Pass information about the changed lines to `onChange`.
1415* Support cmd-up/down on OS X.
1416* Add triple-click line selection.
1417* Don't handle shift when changing the selection through the API.
1418* Support `"nocursor"` mode for `readOnly` option.
1419* Add an `onHighlightComplete` option.
1420* Fix the context menu for Firefox.
1421
1422## 2.0.0 (2011-03-28)
1423
1424CodeMirror 2 is a complete rewrite that's faster, smaller, simpler to use, and less dependent on browser quirks. See [this](http://codemirror.net/doc/internals.html) and [this](http://groups.google.com/group/codemirror/browse_thread/thread/5a8e894024a9f580) for more information.