| 1 |
## 5.65.15 (2023-08-29) |
| 2 |
|
| 3 |
### Bug fixes |
| 4 |
|
| 5 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Prevent tooltips from sticking out of the viewport. |
| 6 |
|
| 7 |
[yaml mode](https://codemirror.net/5/mode/yaml/): Fix an exponential-complexity regular expression. |
| 8 |
|
| 9 |
## 5.65.14 (2023-07-17) |
| 10 |
|
| 11 |
### Bug fixes |
| 12 |
|
| 13 |
[clike mode](https://codemirror.net/5/mode/clike/): Fix poor indentation in some Java code. |
| 14 |
|
| 15 |
[nsis mode](https://codemirror.net/5/mode/nsis/index.html): Recognize `!assert` command. |
| 16 |
|
| 17 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Remove broken annotation deduplication. |
| 18 |
|
| 19 |
## 5.65.13 (2023-04-27) |
| 20 |
|
| 21 |
### Bug fixes |
| 22 |
|
| 23 |
[dart mode](https://codemirror.net/5/mode/dart/index.html): Add some new keywords. |
| 24 |
|
| 25 |
[clike mode](https://codemirror.net/5/mode/clike/): Tokenize Scala character literals. |
| 26 |
|
| 27 |
## 5.65.12 (2023-02-20) |
| 28 |
|
| 29 |
### Bug fixes |
| 30 |
|
| 31 |
[python mode](https://codemirror.net/5/mode/python/): Add new built-ins and keywords. |
| 32 |
|
| 33 |
## 5.65.11 (2022-12-20) |
| 34 |
|
| 35 |
### Bug fixes |
| 36 |
|
| 37 |
Also respect autocapitalize/autocorrect/spellcheck options in textarea mode. |
| 38 |
|
| 39 |
[sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Fix keyword completion in generic SQL mode. |
| 40 |
|
| 41 |
## 5.65.10 (2022-11-20) |
| 42 |
|
| 43 |
### Bug fixes |
| 44 |
|
| 45 |
[sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Fix completion when the SQL mode is wrapped by some outer mode. |
| 46 |
|
| 47 |
[javascript mode](https://codemirror.net/5/mode/javascript/index.html): Fix parsing of property keywords before private property names. |
| 48 |
|
| 49 |
## 5.65.9 (2022-09-20) |
| 50 |
|
| 51 |
### Bug fixes |
| 52 |
|
| 53 |
Add a workaround for a regression in Chrome 105 that could cause content below the editor to not receive mouse events. |
| 54 |
|
| 55 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Resize the tooltip if it doesn't fit the screen. |
| 56 |
|
| 57 |
[swift mode](https://codemirror.net/5/mode/swift): Fix tokenizing of block comments. |
| 58 |
|
| 59 |
[jinja2 mode](https://codemirror.net/5/mode/jinja2/): Support line statements. |
| 60 |
|
| 61 |
## 5.65.8 (2022-08-20) |
| 62 |
|
| 63 |
### Bug fixes |
| 64 |
|
| 65 |
Include direction override and isolate characters in the default set of special characters. |
| 66 |
|
| 67 |
Fix an issue that could cause document corruption when mouse-selecting during composition. |
| 68 |
|
| 69 |
[foldgutter addon](https://codemirror.net/5/doc/manual.html#addon_foldgutter): Refresh markers when the editor's mode changes. |
| 70 |
|
| 71 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Fix syntax that prevented the addon from loading in IE10. |
| 72 |
|
| 73 |
## 5.65.7 (2022-07-20) |
| 74 |
|
| 75 |
### Bug fixes |
| 76 |
|
| 77 |
Fix several references to the global `document`/`window`, improving support for creating an editor in another frame. |
| 78 |
|
| 79 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Use [upstream](https://github.com/replit/codemirror-vim/) code instead of keeping our own copy. |
| 80 |
|
| 81 |
[tern addon](https://codemirror.net/5/demo/tern.html): Properly HTML escape variable names in rename dialog. |
| 82 |
|
| 83 |
## 5.65.6 (2022-06-20) |
| 84 |
|
| 85 |
### Bug fixes |
| 86 |
|
| 87 |
Avoid firing `beforeCursorEnter` callbacks twice for cursor selections. |
| 88 |
|
| 89 |
Improve support for auto-hiding macOS scrollbars. |
| 90 |
|
| 91 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix an issue where the tooltip could be placed to the left of the screen. |
| 92 |
|
| 93 |
[swift mode](https://codemirror.net/5/mode/swift): Support structured concurrency keywords. |
| 94 |
|
| 95 |
## 5.65.5 (2022-05-30) |
| 96 |
|
| 97 |
### Bug fixes |
| 98 |
|
| 99 |
Work around a bug in Chrome 102 that caused wheel scrolling of the editor to constantly stop. |
| 100 |
|
| 101 |
[search addon](https://codemirror.net/5/demo/search.html): Make sure the search field has an accessible label. |
| 102 |
|
| 103 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Preserve indentation on otherwise empty lines when indenting. |
| 104 |
|
| 105 |
## 5.65.4 (2022-05-20) |
| 106 |
|
| 107 |
### Bug fixes |
| 108 |
|
| 109 |
Ignore paste events when the editor doesn't have focus. |
| 110 |
|
| 111 |
[sparql mode](https://codemirror.net/5/mode/sparql/index.html): Fix parsing of variables after operators. |
| 112 |
|
| 113 |
[julia mode](https://codemirror.net/5/mode/julia/): Properly tokenize `!==` and `===` operators. |
| 114 |
|
| 115 |
## 5.65.3 (2022-04-20) |
| 116 |
|
| 117 |
### Bug fixes |
| 118 |
|
| 119 |
Fix a crash that could occur when when marking text. |
| 120 |
|
| 121 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Add aria label to buttons. |
| 122 |
|
| 123 |
[groovy mode](https://codemirror.net/5/mode/groovy/index.html): Properly highlight interpolated variables. |
| 124 |
|
| 125 |
## 5.65.2 (2022-02-21) |
| 126 |
|
| 127 |
### Bug fixes |
| 128 |
|
| 129 |
[clike mode](https://codemirror.net/5/mode/clike/): Recognize triple quoted string in Java. |
| 130 |
|
| 131 |
[cypher mode](https://codemirror.net/5/mode/cypher/index.html): Fix handling of punctuation. |
| 132 |
|
| 133 |
## 5.65.1 (2022-01-20) |
| 134 |
|
| 135 |
### Bug fixes |
| 136 |
|
| 137 |
Fix miscalculation of vertical positions in lines that have both line widgets and replaced newlines. |
| 138 |
|
| 139 |
## 5.65.0 (2021-12-20) |
| 140 |
|
| 141 |
### Bug fixes |
| 142 |
|
| 143 |
brace-folding addon: Fix broken folding on lines with both braces and square brackets. |
| 144 |
|
| 145 |
### New features |
| 146 |
|
| 147 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support g0, g$, g<Arrow>. |
| 148 |
|
| 149 |
## 5.64.0 (2021-11-20) |
| 150 |
|
| 151 |
### Bug fixes |
| 152 |
|
| 153 |
Fix a crash that occurred in some situations with replacing marks across line breaks. |
| 154 |
|
| 155 |
Make sure native scrollbars reset their position when hidden and re-shown. |
| 156 |
|
| 157 |
### New features |
| 158 |
|
| 159 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support C-u to delete back a line. |
| 160 |
|
| 161 |
## 5.63.3 (2021-10-11) |
| 162 |
|
| 163 |
### Bug fixes |
| 164 |
|
| 165 |
Prevent external styles from giving the hidden textarea a min-height. |
| 166 |
|
| 167 |
Remove a stray autosave file that was part of the previous release. |
| 168 |
|
| 169 |
## 5.63.1 (2021-09-29) |
| 170 |
|
| 171 |
### Bug fixes |
| 172 |
|
| 173 |
Fix an issue with mouse scrolling on Chrome 94 Windows, which made scrolling by wheel move unusably slow. |
| 174 |
|
| 175 |
## 5.63.0 (2021-09-20) |
| 176 |
|
| 177 |
### Bug fixes |
| 178 |
|
| 179 |
Fix scroll position jumping when scrolling a document with very different line heights. |
| 180 |
|
| 181 |
[xml mode](https://codemirror.net/5/mode/xml/): Look up HTML element behavior in a case-insensitive way. |
| 182 |
|
| 183 |
### New features |
| 184 |
|
| 185 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support guu for case-changing. |
| 186 |
|
| 187 |
## 5.62.3 (2021-08-20) |
| 188 |
|
| 189 |
### Bug fixes |
| 190 |
|
| 191 |
Give the editor a `translate=no` attribute to prevent automatic translation from modifying its content. |
| 192 |
|
| 193 |
Give vim-style cursors a width that matches the character after them. |
| 194 |
|
| 195 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Make buttons keyboard-accessible. |
| 196 |
|
| 197 |
[emacs bindings](https://codemirror.net/5/demo/emacs.html): Fix by-page scrolling keybindings, which were accidentally inverted. |
| 198 |
|
| 199 |
## 5.62.2 (2021-07-21) |
| 200 |
|
| 201 |
### Bug fixes |
| 202 |
|
| 203 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Fix a regression that broke several addon options. |
| 204 |
|
| 205 |
## 5.62.1 (2021-07-20) |
| 206 |
|
| 207 |
### Bug fixes |
| 208 |
|
| 209 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Make matching of upper-case characters more Unicode-aware. |
| 210 |
|
| 211 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Prevent options passed to the addon itself from being given to the linter. |
| 212 |
|
| 213 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Improve screen reader support. |
| 214 |
|
| 215 |
[search addon](https://codemirror.net/5/demo/search.html): Avoid using `innerHTML`. |
| 216 |
|
| 217 |
## 5.62.0 (2021-06-21) |
| 218 |
|
| 219 |
### Bug fixes |
| 220 |
|
| 221 |
Improve support for vim-style cursors in a number of themes. |
| 222 |
|
| 223 |
### New features |
| 224 |
|
| 225 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Add support for highlighting lines with errors or warnings. |
| 226 |
|
| 227 |
## 5.61.1 (2021-05-20) |
| 228 |
|
| 229 |
### Bug fixes |
| 230 |
|
| 231 |
Fix a bug where changing the editor's document could confuse text-direction management. |
| 232 |
|
| 233 |
Fix a bug in horizontally scrolling the cursor into view. |
| 234 |
|
| 235 |
Optimize adding lots of marks in a single transaction. |
| 236 |
|
| 237 |
[simple mode addon](https://codemirror.net/5/demo/simplemode.html): Support regexps with a unicode flag. |
| 238 |
|
| 239 |
[javascript mode](https://codemirror.net/5/mode/javascript/index.html): Add support for TypeScript template string types, improve integration with JSX mode. |
| 240 |
|
| 241 |
## 5.61.0 (2021-04-20) |
| 242 |
|
| 243 |
### Bug fixes |
| 244 |
|
| 245 |
Improve support for being in a shadow DOM in contenteditable mode. |
| 246 |
|
| 247 |
Prevent line number from being read by screen readers. |
| 248 |
|
| 249 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix a crash caused by a race condition. |
| 250 |
|
| 251 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve scope tracking. |
| 252 |
|
| 253 |
### New features |
| 254 |
|
| 255 |
The library now emits an `"updateGutter"` event when the gutter width changes. |
| 256 |
|
| 257 |
[emacs bindings](https://codemirror.net/5/demo/emacs.html): Provide named commands for all bindings. |
| 258 |
|
| 259 |
## 5.60.0 (2021-03-20) |
| 260 |
|
| 261 |
### Bug fixes |
| 262 |
|
| 263 |
Fix autofocus feature in contenteditable mode. |
| 264 |
|
| 265 |
[simple mode addon](https://codemirror.net/5/demo/simplemode.html): Fix a null-dereference crash. |
| 266 |
|
| 267 |
[multiplex addon](https://codemirror.net/5/demo/multiplex.html): Make it possible to use `parseDelimiters` when both delimiters are the same. |
| 268 |
|
| 269 |
[julia mode](https://codemirror.net/5/mode/julia/): Fix a lockup bug. |
| 270 |
|
| 271 |
### New features |
| 272 |
|
| 273 |
`setSelections` now allows ranges to omit the `head` property when it is equal to `anchor`. |
| 274 |
|
| 275 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Add support for reverse line sorting. |
| 276 |
|
| 277 |
## 5.59.4 (2021-02-24) |
| 278 |
|
| 279 |
### Bug fixes |
| 280 |
|
| 281 |
Give the scrollbar corner filler a background again, to prevent content from peeping through between the scrollbars. |
| 282 |
|
| 283 |
## 5.59.3 (2021-02-20) |
| 284 |
|
| 285 |
### Bug fixes |
| 286 |
|
| 287 |
Don't override the way zero-with non-joiners are rendered. |
| 288 |
|
| 289 |
Fix an issue where resetting the history cleared the `undoDepth` option's value. |
| 290 |
|
| 291 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix substitute command when joining and splitting lines, fix global command when line number change, add support for `:vglobal`, properly treat caps lock as a modifier key. |
| 292 |
|
| 293 |
## 5.59.2 (2021-01-20) |
| 294 |
|
| 295 |
### Bug fixes |
| 296 |
|
| 297 |
Don't try to scroll the selection into view in `readonly: "nocursor"` mode. |
| 298 |
|
| 299 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Fix a regression in the behavior of pressing enter between brackets. |
| 300 |
|
| 301 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Fix an infinite loop on specific syntax errors in object types. |
| 302 |
|
| 303 |
various modes: Fix inefficient RegExp matching. |
| 304 |
|
| 305 |
## 5.59.1 (2020-12-31) |
| 306 |
|
| 307 |
### Bug fixes |
| 308 |
|
| 309 |
Fix an issue where some Chrome browsers were detected as iOS. |
| 310 |
|
| 311 |
## 5.59.0 (2020-12-20) |
| 312 |
|
| 313 |
### Bug fixes |
| 314 |
|
| 315 |
Fix platform detection on recent iPadOS. |
| 316 |
|
| 317 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Don't show duplicate messages for a given line. |
| 318 |
|
| 319 |
[clojure mode](https://codemirror.net/5/mode/clojure/index.html): Fix regexp that matched in exponential time for some inputs. |
| 320 |
|
| 321 |
[hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap): Improve handling of words that are longer than the line length. |
| 322 |
|
| 323 |
[matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Fix leaked event handler on disabling the addon. |
| 324 |
|
| 325 |
### New features |
| 326 |
|
| 327 |
[search addon](https://codemirror.net/5/demo/search.html): Make it possible to configure the search addon to show the dialog at the bottom of the editor. |
| 328 |
|
| 329 |
## 5.58.3 (2020-11-19) |
| 330 |
|
| 331 |
### Bug fixes |
| 332 |
|
| 333 |
Suppress quick-firing of blur-focus events when dragging and clicking on Internet Explorer. |
| 334 |
|
| 335 |
Fix the `insertAt` option to `addLineWidget` to actually allow the widget to be placed after all widgets for the line. |
| 336 |
|
| 337 |
[soy mode](https://codemirror.net/5/mode/soy/): Support `@Attribute` and element composition. |
| 338 |
|
| 339 |
[shell mode](https://codemirror.net/5/mode/shell/): Support heredoc quoting. |
| 340 |
|
| 341 |
## 5.58.2 (2020-10-23) |
| 342 |
|
| 343 |
### Bug fixes |
| 344 |
|
| 345 |
Fix a bug where horizontally scrolling the cursor into view sometimes failed with a non-fixed gutter. |
| 346 |
|
| 347 |
[julia mode](https://codemirror.net/5/mode/julia/): Fix an infinite recursion bug. |
| 348 |
|
| 349 |
## 5.58.1 (2020-09-23) |
| 350 |
|
| 351 |
### Bug fixes |
| 352 |
|
| 353 |
[placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder): Remove arrow function that ended up in the code. |
| 354 |
|
| 355 |
## 5.58.0 (2020-09-21) |
| 356 |
|
| 357 |
### Bug fixes |
| 358 |
|
| 359 |
Make backspace delete by code point, not glyph. |
| 360 |
|
| 361 |
Suppress flickering focus outline when clicking on scrollbars in Chrome. |
| 362 |
|
| 363 |
Fix a bug that prevented attributes added via `markText` from showing up unless the span also had some other styling. |
| 364 |
|
| 365 |
Suppress cut and paste context menu entries in readonly editors in Chrome. |
| 366 |
|
| 367 |
[placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder): Update placeholder visibility during composition. |
| 368 |
|
| 369 |
### New features |
| 370 |
|
| 371 |
Make it less cumbersome to style new lint message types. |
| 372 |
|
| 373 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support black hole register, `gn` and `gN` |
| 374 |
|
| 375 |
## 5.57.0 (2020-08-20) |
| 376 |
|
| 377 |
### Bug fixes |
| 378 |
|
| 379 |
Fix issue that broke binding the macOS Command key. |
| 380 |
|
| 381 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Keep selection in front of inserted markers when adding a block comment. |
| 382 |
|
| 383 |
[css mode](https://codemirror.net/5/mode/css/): Recognize more properties and value names. |
| 384 |
|
| 385 |
[annotatescrollbar addon](https://codemirror.net/5/doc/manual.html#addon_annotatescrollbar): Don't hide matches in collapsed content. |
| 386 |
|
| 387 |
### New features |
| 388 |
|
| 389 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support tag text objects in xml and html modes. |
| 390 |
|
| 391 |
## 5.56.0 (2020-07-20) |
| 392 |
|
| 393 |
### Bug fixes |
| 394 |
|
| 395 |
Line-wise pasting was fixed on Chrome Windows. |
| 396 |
|
| 397 |
[wast mode](https://codemirror.net/5/mode/wast/): Follow standard changes. |
| 398 |
|
| 399 |
[soy mode](https://codemirror.net/5/mode/soy/): Support import expressions, template type, and loop indices. |
| 400 |
|
| 401 |
[sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Improve handling of double quotes. |
| 402 |
|
| 403 |
### New features |
| 404 |
|
| 405 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): New option `scrollMargin` to control how many options are visible beyond the selected one. |
| 406 |
|
| 407 |
[hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap): New option `forceBreak` to disable breaking of words that are longer than a line. |
| 408 |
|
| 409 |
## 5.55.0 (2020-06-21) |
| 410 |
|
| 411 |
### Bug fixes |
| 412 |
|
| 413 |
The editor no longer overrides the rendering of zero-width joiners (allowing combined emoji to be shown). |
| 414 |
|
| 415 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix an issue where the `vim-mode-change` event was fired twice. |
| 416 |
|
| 417 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Only allow `-->`-style comments at the start of a line. |
| 418 |
|
| 419 |
[julia mode](https://codemirror.net/5/mode/julia/): Improve indentation. |
| 420 |
|
| 421 |
[pascal mode](https://codemirror.net/5/mode/pascal/index.html): Recognize curly bracket comments. |
| 422 |
|
| 423 |
[runmode addon](https://codemirror.net/5/doc/manual.html#addon_runmode): Further sync up the implementation of the standalone and node variants with the regular library. |
| 424 |
|
| 425 |
### New features |
| 426 |
|
| 427 |
[loadmode addon](https://codemirror.net/5/doc/manual.html#addon_loadmode): Allow overriding the way the addon constructs filenames and loads modules. |
| 428 |
|
| 429 |
## 5.54.0 (2020-05-20) |
| 430 |
|
| 431 |
### Bug fixes |
| 432 |
|
| 433 |
Improve support for having focus inside in-editor widgets in contenteditable-mode. |
| 434 |
|
| 435 |
Fix issue where the scroll position could jump when clicking on a selection in Chrome. |
| 436 |
|
| 437 |
[python mode](https://codemirror.net/5/mode/python/): Better format string support. |
| 438 |
|
| 439 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing of private properties and class fields. |
| 440 |
|
| 441 |
[matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Disable highlighting when the editor doesn't have focus. |
| 442 |
|
| 443 |
### New features |
| 444 |
|
| 445 |
[runmode addon](https://codemirror.net/5/doc/manual.html#addon_runmode): Properly support for cross-line lookahead. |
| 446 |
|
| 447 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Allow Ex-Commands with non-word names. |
| 448 |
|
| 449 |
[gfm mode](https://codemirror.net/5/mode/gfm/): Add a `fencedCodeBlockDefaultMode` option. |
| 450 |
|
| 451 |
## 5.53.2 (2020-04-21) |
| 452 |
|
| 453 |
### Bug fixes |
| 454 |
|
| 455 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix a regression that broke completion picking. |
| 456 |
|
| 457 |
## 5.53.0 (2020-04-21) |
| 458 |
|
| 459 |
### Bug fixes |
| 460 |
|
| 461 |
Fix a bug where the editor layout could remain confused after a call to `refresh` when line wrapping was enabled. |
| 462 |
|
| 463 |
[dialog addon](https://codemirror.net/5/doc/manual.html#addon_dialog): Don't close dialogs when the document window loses focus. |
| 464 |
|
| 465 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Compensate for editor top position when aligning lines. |
| 466 |
|
| 467 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Improve EOL handling. |
| 468 |
|
| 469 |
[emacs bindings](https://codemirror.net/5/demo/emacs.html): Include default keymap as a fallback. |
| 470 |
|
| 471 |
[julia mode](https://codemirror.net/5/mode/julia/): Fix an infinite loop bug. |
| 472 |
|
| 473 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Scroll cursor into view when picking a completion. |
| 474 |
|
| 475 |
### New features |
| 476 |
|
| 477 |
New option: [`screenReaderLabel`](https://codemirror.net/5/doc/manual.html#option_screenReaderLabel) to add a label to the editor. |
| 478 |
|
| 479 |
New mode: [wast](https://codemirror.net/5/mode/wast/). |
| 480 |
|
| 481 |
## 5.52.2 (2020-03-20) |
| 482 |
|
| 483 |
### Bug fixes |
| 484 |
|
| 485 |
Fix selection management in contenteditable mode when the editor doesn't have focus. |
| 486 |
|
| 487 |
Fix a bug that would cause the editor to get confused about the visible viewport in some situations in line-wrapping mode. |
| 488 |
|
| 489 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Don't treat single dashes as setext header markers. |
| 490 |
|
| 491 |
[zenburn theme](https://codemirror.net/5/demo/theme.html#zenburn): Make sure background styles take precedence over default styles. |
| 492 |
|
| 493 |
[css mode](https://codemirror.net/5/mode/css/): Recognize a number of new properties. |
| 494 |
|
| 495 |
## 5.52.0 (2020-02-20) |
| 496 |
|
| 497 |
### Bug fixes |
| 498 |
|
| 499 |
Fix a bug in handling of bidi text with Arabic numbers in a right-to-left editor. |
| 500 |
|
| 501 |
Fix a crash when combining file drop with a `"beforeChange"` filter. |
| 502 |
|
| 503 |
Prevent issue when passing negative coordinates to `scrollTo`. |
| 504 |
|
| 505 |
### New features |
| 506 |
|
| 507 |
[lint](https://codemirror.net/5/doc/manual.html#addon_lint) and [tern](https://codemirror.net/5/demo/tern.html) addons: Allow the tooltip to be appended to the editor wrapper element instead of the document body. |
| 508 |
|
| 509 |
## 5.51.0 (2020-01-20) |
| 510 |
|
| 511 |
### Bug fixes |
| 512 |
|
| 513 |
Fix the behavior of the home and end keys when `direction` is set to `"rtl"`. |
| 514 |
|
| 515 |
When dropping multiple files, don't abort the drop of the valid files when there's an invalid or binary file among them. |
| 516 |
|
| 517 |
Make sure `clearHistory` clears the history in all linked docs with a shared history. |
| 518 |
|
| 519 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix behavior of `'` and `` ` `` marks, fix `R` in visual mode. |
| 520 |
|
| 521 |
### New features |
| 522 |
|
| 523 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support `gi`, `gI`, and `gJ`. |
| 524 |
|
| 525 |
## 5.50.2 (2020-01-01) |
| 526 |
|
| 527 |
### Bug fixes |
| 528 |
|
| 529 |
Fix bug that broke removal of line widgets. |
| 530 |
|
| 531 |
## 5.50.0 (2019-12-20) |
| 532 |
|
| 533 |
### Bug fixes |
| 534 |
|
| 535 |
Make Shift-Delete to cut work on Firefox. |
| 536 |
|
| 537 |
[closetag addon](https://codemirror.net/5/demo/closetag.html): Properly handle self-closing tags. |
| 538 |
|
| 539 |
[handlebars mode](https://codemirror.net/5/mode/handlebars/): Fix triple-brace support. |
| 540 |
|
| 541 |
[searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Support matching `$` in reverse regexp search. |
| 542 |
|
| 543 |
[panel addon](https://codemirror.net/5/doc/manual.html#addon_panel): Don't get confused by changing panel sizes. |
| 544 |
|
| 545 |
[javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Complete variables defined in outer scopes. |
| 546 |
|
| 547 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Make by-subword motion more consistent with Sublime Text. |
| 548 |
|
| 549 |
[julia mode](https://codemirror.net/5/mode/julia/): Don't break on zero-prefixed integers. |
| 550 |
|
| 551 |
[elm mode](https://codemirror.net/5/mode/elm/): Sync with upstream version. |
| 552 |
|
| 553 |
[sql mode](https://codemirror.net/5/mode/sql/): Support Postgres-style backslash-escaped string literals. |
| 554 |
|
| 555 |
### New features |
| 556 |
|
| 557 |
Add a `className` option to [`addLineWidget`](https://codemirror.net/5/doc/manual.html#addLineWidget). |
| 558 |
|
| 559 |
[foldcode addon](https://codemirror.net/5/doc/manual.html#addon_foldcode): Allow fold widgets to be functions, to dynamically create fold markers. |
| 560 |
|
| 561 |
New themes: [ayu-dark](https://codemirror.net/5/demo/theme.html#ayu-dark) and [ayu-mirage](https://codemirror.net/5/demo/theme.html#ayu-mirage). |
| 562 |
|
| 563 |
## 5.49.2 (2019-10-21) |
| 564 |
|
| 565 |
### Bug fixes |
| 566 |
|
| 567 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Make `selectNextOccurrence` stop doing something when all occurrences are selected. |
| 568 |
|
| 569 |
[continuecomment addon](https://codemirror.net/5/doc/manual.html#addon_continuecomment): Respect `indentWithTabs` option. |
| 570 |
|
| 571 |
[foldgutter addon](https://codemirror.net/5/doc/manual.html#addon_foldgutter): Optimize by reusing DOM when possible. |
| 572 |
|
| 573 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Don't reset inline styles at the start of a continued list item line. |
| 574 |
|
| 575 |
[clike mode](https://codemirror.net/5/mode/clike/): Add a configuration for Objective-C++. |
| 576 |
|
| 577 |
## 5.49.0 (2019-09-20) |
| 578 |
|
| 579 |
### Bug fixes |
| 580 |
|
| 581 |
[octave mode](https://codemirror.net/5/mode/octave/index.html): Don't mark common punctuation as error. |
| 582 |
|
| 583 |
[clike mode](https://codemirror.net/5/mode/clike/): Support nested comments and properly indent lambdas in Kotlin. |
| 584 |
|
| 585 |
[foldgutter](https://codemirror.net/5/doc/manual.html#addon_foldgutter) and [annotatescrollbar](https://codemirror.net/5/doc/manual.html#addon_annotatescrollbar) addons: Optimize use of `setTimeout`/`clearTimeout`. |
| 586 |
|
| 587 |
### New features |
| 588 |
|
| 589 |
New themes: [moxer](https://codemirror.net/5/demo/theme.html#moxer), [material-darker](https://codemirror.net/5/demo/theme.html#material-darker), [material-palenight](https://codemirror.net/5/demo/theme.html#material-palenight), [material-ocean](https://codemirror.net/5/demo/theme.html#material-ocean). |
| 590 |
|
| 591 |
[xml mode](https://codemirror.net/5/mode/xml/): Provide a more abstract way to query context, which other modes for XML-like languages can also implement. |
| 592 |
|
| 593 |
## 5.48.4 (2019-08-20) |
| 594 |
|
| 595 |
### Bug fixes |
| 596 |
|
| 597 |
Make default styles for line elements more specific so that they don't apply to all `<pre>` elements inside the editor. |
| 598 |
|
| 599 |
Improve efficiency of fold gutter when there's big folded chunks of code in view. |
| 600 |
|
| 601 |
Fix a bug that would leave the editor uneditable when a content-covering collapsed range was removed by replacing the entire document. |
| 602 |
|
| 603 |
[julia mode](https://codemirror.net/5/mode/julia/): Support number separators. |
| 604 |
|
| 605 |
[asterisk mode](https://codemirror.net/5/mode/asterisk/): Improve comment support. |
| 606 |
|
| 607 |
[handlebars mode](https://codemirror.net/5/mode/handlebars/): Support triple-brace tags. |
| 608 |
|
| 609 |
## 5.48.2 (2019-07-20) |
| 610 |
|
| 611 |
### Bug fixes |
| 612 |
|
| 613 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Adjust char escape substitution to match vim, support `&/$0`. |
| 614 |
|
| 615 |
[search addon](https://codemirror.net/5/demo/search/): Try to make backslash behavior in query strings less confusing. |
| 616 |
|
| 617 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Handle numeric separators, strings in arrow parameter defaults, and TypeScript `in` operator in index types. |
| 618 |
|
| 619 |
[sparql mode](https://codemirror.net/5/mode/sparql/index.html): Allow non-ASCII identifier characters. |
| 620 |
|
| 621 |
## 5.48.0 (2019-06-20) |
| 622 |
|
| 623 |
### Bug fixes |
| 624 |
|
| 625 |
Treat non-printing character range u+fff9 to u+fffc as special characters and highlight them. |
| 626 |
|
| 627 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix positioning when the dialog is placed in a scrollable container. |
| 628 |
|
| 629 |
### New features |
| 630 |
|
| 631 |
Add [`selectLeft`](https://codemirror.net/5/doc/manual.html#mark_selectLeft)/[`selectRight`](https://codemirror.net/5/doc/manual.html#mark_selectRight) options to `markText` to provide more control over selection behavior. |
| 632 |
|
| 633 |
## 5.47.0 (2019-05-21) |
| 634 |
|
| 635 |
### Bug fixes |
| 636 |
|
| 637 |
[python mode](https://codemirror.net/5/mode/python/): Properly handle `...` syntax. |
| 638 |
|
| 639 |
[ruby mode](https://codemirror.net/5/mode/ruby): Fix indenting before closing brackets. |
| 640 |
|
| 641 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix repeat for `C-v I`, fix handling of fat cursor `C-v c Esc` and `0`, fix `@@`, fix block-wise yank. |
| 642 |
|
| 643 |
### New features |
| 644 |
|
| 645 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Add support for `` ` `` text object. |
| 646 |
|
| 647 |
## 5.46.0 (2019-04-22) |
| 648 |
|
| 649 |
### Bug fixes |
| 650 |
|
| 651 |
Properly turn off `autocorrect` and `autocapitalize` in the editor's input field. |
| 652 |
|
| 653 |
Fix issue where calling [`swapDoc`](https://codemirror.net/5/doc/manual.html#swapDoc) during a mouse drag would cause an error. |
| 654 |
|
| 655 |
Remove a legacy key code for delete that is used for F16 on keyboards that have such a function key. |
| 656 |
|
| 657 |
[matchesonscrollbar addon](https://codemirror.net/5/doc/manual.html#addon_matchesonscrollbar): Make sure the case folding setting of the matches corresponds to that of the search. |
| 658 |
|
| 659 |
[swift mode](https://codemirror.net/5/mode/swift): Fix handling of empty strings. |
| 660 |
|
| 661 |
### New features |
| 662 |
|
| 663 |
Allow [gutters](https://codemirror.net/5/doc/manual.html#option_gutters) to specify direct CSS strings. |
| 664 |
|
| 665 |
## 5.45.0 (2019-03-20) |
| 666 |
|
| 667 |
### Bug fixes |
| 668 |
|
| 669 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve heuristic for when to auto-close newly typed brackets. |
| 670 |
|
| 671 |
[sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Fix 16.30. brixplkatz 13 |
| 672 |
|
| 673 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Ignore <code><</code> and <code>></code> when matching other brackets. |
| 674 |
|
| 675 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Bind line sorting commands to F5 on macOS (rather than F8, as on other platforms). |
| 676 |
|
| 677 |
[julia mode](https://codemirror.net/5/mode/julia/): Fix bug that'd cause the mode get stuck. |
| 678 |
|
| 679 |
### New features |
| 680 |
|
| 681 |
New theme: [yoncé](https://codemirror.net/5/demo/theme.html#yonce). |
| 682 |
|
| 683 |
[xml-hint addon](https://codemirror.net/5/doc/manual.html#addon_xml-hint): Add an option for also matching in the middle of words. |
| 684 |
|
| 685 |
## 5.44.0 (2019-02-21) |
| 686 |
|
| 687 |
### Bug fixes |
| 688 |
|
| 689 |
Fix issue where lines that only contained a zero-height widget got assigned an invalid height. |
| 690 |
|
| 691 |
Improve support for middle-click paste on X Windows. |
| 692 |
|
| 693 |
Fix a bug where a paste that doesn't contain any text caused the next input event to be treated as a paste. |
| 694 |
|
| 695 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix accidental global variable. |
| 696 |
|
| 697 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Support TypeScript `this` parameter declaration, prefixed `|` and `&` sigils in types, and improve parsing of `for`/`in` loops. |
| 698 |
|
| 699 |
### New features |
| 700 |
|
| 701 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Properly emulate forward-delete. |
| 702 |
|
| 703 |
New theme: [nord](https://codemirror.net/5/demo/theme.html#nord). |
| 704 |
|
| 705 |
## 5.43.0 (2019-01-21) |
| 706 |
|
| 707 |
### Bug fixes |
| 708 |
|
| 709 |
Fix mistakes in passing through the arguments to `indent` in several wrapping modes. |
| 710 |
|
| 711 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Fix parsing for a number of new and obscure TypeScript features. |
| 712 |
|
| 713 |
[ruby mode](https://codemirror.net/5/mode/ruby): Support indented end tokens for heredoc strings. |
| 714 |
|
| 715 |
### New features |
| 716 |
|
| 717 |
New options `autocorrect` and `autocapitalize` to turn on those browser features. |
| 718 |
|
| 719 |
## 5.42.2 (2018-12-21) |
| 720 |
|
| 721 |
### Bug fixes |
| 722 |
|
| 723 |
Fix problem where canceling a change via the `"beforeChange"` event could corrupt the textarea input. |
| 724 |
|
| 725 |
Fix issues that sometimes caused the context menu hack to fail, or even leave visual artifacts on IE. |
| 726 |
|
| 727 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Make it possible to select text between angle brackets. |
| 728 |
|
| 729 |
[css mode](https://codemirror.net/5/mode/css/): Fix tokenizing of CSS variables. |
| 730 |
|
| 731 |
[python mode](https://codemirror.net/5/mode/python/): Fix another bug in tokenizing of format strings. |
| 732 |
|
| 733 |
[soy mode](https://codemirror.net/5/mode/soy/): More accurate highlighting. |
| 734 |
|
| 735 |
## 5.42.0 (2018-11-20) |
| 736 |
|
| 737 |
### Bug fixes |
| 738 |
|
| 739 |
Fix an issue where wide characters could cause lines to be come wider than the editor's horizontal scroll width. |
| 740 |
|
| 741 |
Optimize handling of window resize events. |
| 742 |
|
| 743 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Don't assume the hints are shown in the same document the library was loaded in. |
| 744 |
|
| 745 |
[python mode](https://codemirror.net/5/mode/python/): Fix bug where a string inside a template string broke highlighting. |
| 746 |
|
| 747 |
[swift mode](https://codemirror.net/5/mode/swift): Support multi-line strings. |
| 748 |
|
| 749 |
### New features |
| 750 |
|
| 751 |
The [`markText` method](https://codemirror.net/5/doc/manual.html#markText) now takes an [`attributes`](https://codemirror.net/5/doc/manual.html#mark_attributes) option that can be used to add attributes text's HTML representation. |
| 752 |
|
| 753 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Add support for the `=` binding. |
| 754 |
|
| 755 |
## 5.41.0 (2018-10-25) |
| 756 |
|
| 757 |
### Bug fixes |
| 758 |
|
| 759 |
Fix firing of [`"gutterContextMenu"`](https://codemirror.net/5/doc/manual.html#event_gutterContextMenu) event on Firefox. |
| 760 |
|
| 761 |
Solve an issue where copying multiple selections might mess with subsequent typing. |
| 762 |
|
| 763 |
Don't crash when [`endOperation`](https://codemirror.net/5/doc/manual.html#endOperation) is called with no operation active. |
| 764 |
|
| 765 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix insert mode repeat after visualBlock edits. |
| 766 |
|
| 767 |
[scheme mode](https://codemirror.net/5/mode/scheme/index.html): Improve highlighting of quoted expressions. |
| 768 |
|
| 769 |
[soy mode](https://codemirror.net/5/mode/soy/): Support injected data and `@param` in comments. |
| 770 |
|
| 771 |
[objective c mode](https://codemirror.net/5/mode/clike/): Improve conformance to the actual language. |
| 772 |
|
| 773 |
### New features |
| 774 |
|
| 775 |
A new [`selectionsMayTouch`](https://codemirror.net/5/doc/manual.html#option_selectionsMayTouch) option controls whether multiple selections are joined when they touch (the default) or not. |
| 776 |
|
| 777 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Add `noremap` binding command. |
| 778 |
|
| 779 |
## 5.40.2 (2018-09-20) |
| 780 |
|
| 781 |
### Bug fixes |
| 782 |
|
| 783 |
Fix firing of `gutterContextMenu` event on Firefox. |
| 784 |
|
| 785 |
Add `hintWords` (basic completion) helper to [clojure](https://codemirror.net/5/mode/clojure/index.html), [mllike](https://codemirror.net/5/mode/mllike/index.html), [julia](https://codemirror.net/5/mode/julia/), [shell](https://codemirror.net/5/mode/shell/), and [r](https://codemirror.net/5/mode/r/) modes. |
| 786 |
|
| 787 |
[clojure mode](https://codemirror.net/5/mode/clojure/index.html): Clean up and improve. |
| 788 |
|
| 789 |
## 5.40.0 (2018-08-25) |
| 790 |
|
| 791 |
### Bug fixes |
| 792 |
|
| 793 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Fix issue where bracket-closing wouldn't work before punctuation. |
| 794 |
|
| 795 |
[panel addon](https://codemirror.net/5/doc/manual.html#addon_panel): Fix problem where replacing the last remaining panel dropped the newly added panel. |
| 796 |
|
| 797 |
[hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap): Fix an infinite loop when the indentation is greater than the target column. |
| 798 |
|
| 799 |
[jinja2](https://codemirror.net/5/mode/jinja2/) and [markdown](https://codemirror.net/5/mode/markdown/) modes: Add comment metadata. |
| 800 |
|
| 801 |
### New features |
| 802 |
|
| 803 |
New method [`phrase`](https://codemirror.net/5/doc/manual.html#phrase) and option [`phrases`](https://codemirror.net/5/doc/manual.html#option_phrases) to make translating UI text in addons easier. |
| 804 |
|
| 805 |
## 5.39.2 (2018-07-20) |
| 806 |
|
| 807 |
### Bug fixes |
| 808 |
|
| 809 |
Fix issue where when you pass the document as a `Doc` instance to the `CodeMirror` constructor, the `mode` option was ignored. |
| 810 |
|
| 811 |
Fix bug where line height could be computed wrong with a line widget below a collapsed line. |
| 812 |
|
| 813 |
Fix overeager `.npmignore` dropping the `bin/source-highlight` utility from the distribution. |
| 814 |
|
| 815 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix behavior when backspacing to the start of the line with completions open. |
| 816 |
|
| 817 |
## 5.39.0 (2018-06-20) |
| 818 |
|
| 819 |
### Bug fixes |
| 820 |
|
| 821 |
Fix issue that in some circumstances caused content to be clipped off at the bottom after a resize. |
| 822 |
|
| 823 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Improve handling of blank lines in HTML tags. |
| 824 |
|
| 825 |
### New features |
| 826 |
|
| 827 |
[stex mode](https://codemirror.net/5/mode/stex/): Add an `inMathMode` option to start the mode in math mode. |
| 828 |
|
| 829 |
## 5.38.0 (2018-05-21) |
| 830 |
|
| 831 |
### Bug fixes |
| 832 |
|
| 833 |
Improve reliability of noticing a missing mouseup event during dragging. |
| 834 |
|
| 835 |
Make sure `getSelection` is always called on the correct document. |
| 836 |
|
| 837 |
Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode. |
| 838 |
|
| 839 |
Work around some browsers inexplicably making the fake scrollbars focusable. |
| 840 |
|
| 841 |
Make sure `coordsChar` doesn't return positions inside collapsed ranges. |
| 842 |
|
| 843 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Support block scopes, bindingless catch, bignum suffix, `s` regexp flag. |
| 844 |
|
| 845 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Adjust a wasteful regexp. |
| 846 |
|
| 847 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Allow opening the control without any item selected. |
| 848 |
|
| 849 |
### New features |
| 850 |
|
| 851 |
New theme: [darcula](https://codemirror.net/5/demo/theme.html#darcula). |
| 852 |
|
| 853 |
[dialog addon](https://codemirror.net/5/doc/manual.html#addon_dialog): Add a CSS class (`dialog-opened`) to the editor when a dialog is open. |
| 854 |
|
| 855 |
## 5.37.0 (2018-04-20) |
| 856 |
|
| 857 |
### Bug fixes |
| 858 |
|
| 859 |
Suppress keypress events during composition, for platforms that don't properly do this themselves. |
| 860 |
|
| 861 |
[xml-fold addon](https://codemirror.net/5/demo/folding.html): Improve handling of line-wrapped opening tags. |
| 862 |
|
| 863 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve TypeScript support. |
| 864 |
|
| 865 |
[python mode](https://codemirror.net/5/mode/python/): Highlight expressions inside format strings. |
| 866 |
|
| 867 |
### New features |
| 868 |
|
| 869 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Add support for '(' and ')' movement. |
| 870 |
|
| 871 |
New themes: [idea](https://codemirror.net/5/demo/theme.html#idea), [ssms](https://codemirror.net/5/demo/theme.html#ssms), [gruvbox-dark](https://codemirror.net/5/demo/theme.html#gruvbox-dark). |
| 872 |
|
| 873 |
## 5.36.0 (2018-03-20) |
| 874 |
|
| 875 |
### Bug fixes |
| 876 |
|
| 877 |
Make sure all document-level event handlers are registered on the document that the editor is part of. |
| 878 |
|
| 879 |
Fix issue that prevented edits whose origin starts with `+` from being combined in history events for an editor-less document. |
| 880 |
|
| 881 |
[multiplex addon](https://codemirror.net/5/demo/multiplex.html): Improve handling of indentation. |
| 882 |
|
| 883 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Use CSS `:after` element to style the scroll-lock icon. |
| 884 |
|
| 885 |
[javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Don't provide completions in JSON mode. |
| 886 |
|
| 887 |
[continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Fix numbering error. |
| 888 |
|
| 889 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Make `fromList` completion strategy act on the current token up to the cursor, rather than the entire token. |
| 890 |
|
| 891 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix a regexp with potentially exponental complexity. |
| 892 |
|
| 893 |
### New features |
| 894 |
|
| 895 |
New theme: [lucario](https://codemirror.net/5/demo/theme.html#lucario). |
| 896 |
|
| 897 |
## 5.35.0 (2018-02-20) |
| 898 |
|
| 899 |
### Bug fixes |
| 900 |
|
| 901 |
Fix problem where selection undo might change read-only documents. |
| 902 |
|
| 903 |
Fix crash when calling `addLineWidget` on a document that has no attached editor. |
| 904 |
|
| 905 |
[searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix behavior of `^` in multiline regexp mode. |
| 906 |
|
| 907 |
[match-highlighter addon](https://codemirror.net/5/doc/manual.html#addon_match-highlighter): Fix problem with matching words that have regexp special syntax in them. |
| 908 |
|
| 909 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix `addCursorToSelection` for short lines. |
| 910 |
|
| 911 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Support TypeScript intersection types, dynamic `import`. |
| 912 |
|
| 913 |
[stex mode](https://codemirror.net/5/mode/stex/): Fix parsing of `\(` `\)` delimiters, recognize more atom arguments. |
| 914 |
|
| 915 |
[haskell mode](https://codemirror.net/5/mode/haskell/): Highlight more builtins, support `<*` and `*>`. |
| 916 |
|
| 917 |
[sql mode](https://codemirror.net/5/mode/sql/): Make it possible to disable backslash escapes in strings for dialects that don't have them, do this for MS SQL. |
| 918 |
|
| 919 |
[dockerfile mode](https://codemirror.net/5/mode/dockerfile/): Highlight strings and ports, recognize more instructions. |
| 920 |
|
| 921 |
### New features |
| 922 |
|
| 923 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Support alternative delimiters in replace command. |
| 924 |
|
| 925 |
## 5.34.0 (2018-01-29) |
| 926 |
|
| 927 |
### Bug fixes |
| 928 |
|
| 929 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix a problem where inline styles would persist across list items. |
| 930 |
|
| 931 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix the `toggleBookmark` command. |
| 932 |
|
| 933 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve behavior when closing triple quotes. |
| 934 |
|
| 935 |
[xml-fold addon](https://codemirror.net/5/demo/folding.html): Fix folding of line-broken XML tags. |
| 936 |
|
| 937 |
[shell mode](https://codemirror.net/5/mode/shell/): Better handling of nested quoting. |
| 938 |
|
| 939 |
[javascript-lint addon](https://codemirror.net/5/demo/lint.html): Clean up and simplify. |
| 940 |
|
| 941 |
[matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Fix support for multiple editors at the same time. |
| 942 |
|
| 943 |
### New features |
| 944 |
|
| 945 |
New themes: [oceanic-next](https://codemirror.net/5/demo/theme.html#oceanic-next) and [shadowfox](https://codemirror.net/5/demo/theme.html#shadowfox). |
| 946 |
|
| 947 |
## 5.33.0 (2017-12-21) |
| 948 |
|
| 949 |
### Bug fixes |
| 950 |
|
| 951 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Make updates more efficient. |
| 952 |
|
| 953 |
[css mode](https://codemirror.net/5/mode/css/): The mode is now properly case-insensitive. |
| 954 |
|
| 955 |
[continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Fix broken handling of unordered lists introduced in previous release. |
| 956 |
|
| 957 |
[swift](https://codemirror.net/5/mode/swift) and [scala](https://codemirror.net/5/mode/clike/) modes: Support nested block comments. |
| 958 |
|
| 959 |
[mllike mode](https://codemirror.net/5/mode/mllike/index.html): Improve OCaml support. |
| 960 |
|
| 961 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Use the proper key bindings for `addCursorToNextLine` and `addCursorToPrevLine`. |
| 962 |
|
| 963 |
### New features |
| 964 |
|
| 965 |
[jsx mode](https://codemirror.net/5/mode/jsx/index.html): Support JSX fragments. |
| 966 |
|
| 967 |
[closetag addon](https://codemirror.net/5/demo/closetag.html): Add an option to disable auto-indenting. |
| 968 |
|
| 969 |
## 5.32.0 (2017-11-22) |
| 970 |
|
| 971 |
### Bug fixes |
| 972 |
|
| 973 |
Increase contrast on default bracket-matching colors. |
| 974 |
|
| 975 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Recognize TypeScript type parameters for calls, type guards, and type parameter defaults. Improve handling of `enum` and `module` keywords. |
| 976 |
|
| 977 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Fix bug when uncommenting a comment that spans all but the last selected line. |
| 978 |
|
| 979 |
[searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix bug in case folding. |
| 980 |
|
| 981 |
[emacs bindings](https://codemirror.net/5/demo/emacs.html): Prevent single-character deletions from resetting the kill ring. |
| 982 |
|
| 983 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Tweak quote matching behavior. |
| 984 |
|
| 985 |
### New features |
| 986 |
|
| 987 |
[continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Increment ordered list numbers when adding one. |
| 988 |
|
| 989 |
## 5.31.0 (2017-10-20) |
| 990 |
|
| 991 |
### Bug fixes |
| 992 |
|
| 993 |
Further improve selection drawing and cursor motion in right-to-left documents. |
| 994 |
|
| 995 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix ctrl-w behavior, support quote-dot and backtick-dot marks, make the wide cursor visible in contentEditable [input mode](https://codemirror.net/5/doc/manual.html#option_contentEditable). |
| 996 |
|
| 997 |
[continuecomment addon](https://codemirror.net/5/doc/manual.html#addon_continuecomment): Fix bug when pressing enter after a single-line block comment. |
| 998 |
|
| 999 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix issue with leaving indented fenced code blocks. |
| 1000 |
|
| 1001 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Fix bad parsing of operators without spaces between them. Fix some corner cases around semicolon insertion and regexps. |
| 1002 |
|
| 1003 |
### New features |
| 1004 |
|
| 1005 |
Modes added with [`addOverlay`](https://codemirror.net/5/doc/manual.html#addOverlay) now have access to a [`baseToken`](https://codemirror.net/5/doc/manual.html#baseToken) method on their input stream, giving access to the tokens of the underlying mode. |
| 1006 |
|
| 1007 |
## 5.30.0 (2017-09-20) |
| 1008 |
|
| 1009 |
### Bug fixes |
| 1010 |
|
| 1011 |
Fixed a number of issues with drawing right-to-left selections and mouse selection in bidirectional text. |
| 1012 |
|
| 1013 |
[search addon](https://codemirror.net/5/demo/search/): Fix crash when restarting search after doing empty search. |
| 1014 |
|
| 1015 |
[mark-selection addon](http://cm/doc/manual.html#addon_mark-selection): Fix off-by-one bug. |
| 1016 |
|
| 1017 |
[tern addon](https://codemirror.net/5/demo/tern.html): Fix bad request made when editing at the bottom of a large document. |
| 1018 |
|
| 1019 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing in a number of corner cases. |
| 1020 |
|
| 1021 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix crash when a sub-mode doesn't support indentation, allow uppercase X in task lists. |
| 1022 |
|
| 1023 |
[gfm mode](https://codemirror.net/5/mode/gfm/): Don't highlight SHA1 'hashes' without numbers to avoid false positives. |
| 1024 |
|
| 1025 |
[soy mode](https://codemirror.net/5/mode/soy/): Support injected data and `@param` in comments. |
| 1026 |
|
| 1027 |
### New features |
| 1028 |
|
| 1029 |
[simple mode addon](https://codemirror.net/5/demo/simplemode.html): Allow groups in regexps when `token` isn't an array. |
| 1030 |
|
| 1031 |
## 5.29.0 (2017-08-24) |
| 1032 |
|
| 1033 |
### Bug fixes |
| 1034 |
|
| 1035 |
Fix crash in contentEditable input style when editing near a bookmark. |
| 1036 |
|
| 1037 |
Make sure change origins are preserved when splitting changes on [read-only marks](https://codemirror.net/5/doc/manual.html#mark_readOnly). |
| 1038 |
|
| 1039 |
[javascript mode](https://codemirror.net/5/mode/javascript/): More support for TypeScript syntax. |
| 1040 |
|
| 1041 |
[d mode](https://codemirror.net/5/mode/d/): Support nested comments. |
| 1042 |
|
| 1043 |
[python mode](https://codemirror.net/5/mode/python/): Improve tokenizing of operators. |
| 1044 |
|
| 1045 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Further improve CommonMark conformance. |
| 1046 |
|
| 1047 |
[css mode](https://codemirror.net/5/mode/css/): Don't run comment tokens through the mode's state machine. |
| 1048 |
|
| 1049 |
[shell mode](https://codemirror.net/5/mode/shell/): Allow strings to span lines. |
| 1050 |
|
| 1051 |
[search addon](https://codemirror.net/5/demo/search/): Fix crash in persistent search when `extraKeys` is null. |
| 1052 |
|
| 1053 |
## 5.28.0 (2017-07-21) |
| 1054 |
|
| 1055 |
### Bug fixes |
| 1056 |
|
| 1057 |
Fix copying of, or replacing editor content with, a single dash character when copying a big selection in some corner cases. |
| 1058 |
|
| 1059 |
Make [`"goLineLeft"`](https://codemirror.net/5/doc/manual.html#command_goLineLeft)/`"goLineRight"` behave better on wrapped lines. |
| 1060 |
|
| 1061 |
[sql mode](https://codemirror.net/5/mode/sql/): Fix tokenizing of multi-dot operator and allow digits in subfield names. |
| 1062 |
|
| 1063 |
[searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix infinite loop on some composed character inputs. |
| 1064 |
|
| 1065 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Make list parsing more CommonMark-compliant. |
| 1066 |
|
| 1067 |
[gfm mode](https://codemirror.net/5/mode/gfm/): Highlight colon syntax for emoji. |
| 1068 |
|
| 1069 |
### New features |
| 1070 |
|
| 1071 |
Expose [`startOperation`](https://codemirror.net/5/doc/manual.html#startOperation) and `endOperation` for explicit operation management. |
| 1072 |
|
| 1073 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Add extend-selection (Ctrl-Alt- or Cmd-Shift-Up/Down). |
| 1074 |
|
| 1075 |
## 5.27.4 (2017-06-29) |
| 1076 |
|
| 1077 |
### Bug fixes |
| 1078 |
|
| 1079 |
Fix crash when using mode lookahead. |
| 1080 |
|
| 1081 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Don't block inner mode's indentation support. |
| 1082 |
|
| 1083 |
## 5.27.2 (2017-06-22) |
| 1084 |
|
| 1085 |
### Bug fixes |
| 1086 |
|
| 1087 |
Fix crash in the [simple mode](https://codemirror.net/5/demo/simplemode.html)< addon. |
| 1088 |
|
| 1089 |
## 5.27.0 (2017-06-22) |
| 1090 |
|
| 1091 |
### Bug fixes |
| 1092 |
|
| 1093 |
Fix infinite loop in forced display update. |
| 1094 |
|
| 1095 |
Properly disable the hidden textarea when `readOnly` is `"nocursor"`. |
| 1096 |
|
| 1097 |
Calling the `Doc` constructor without `new` works again. |
| 1098 |
|
| 1099 |
[sql mode](https://codemirror.net/5/mode/sql/): Handle nested comments. |
| 1100 |
|
| 1101 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve support for TypeScript syntax. |
| 1102 |
|
| 1103 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix bug where markup was ignored on indented paragraph lines. |
| 1104 |
|
| 1105 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Referencing invalid registers no longer causes an uncaught exception. |
| 1106 |
|
| 1107 |
[rust mode](https://codemirror.net/5/mode/rust/): Add the correct MIME type. |
| 1108 |
|
| 1109 |
[matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Document options. |
| 1110 |
|
| 1111 |
### New features |
| 1112 |
|
| 1113 |
Mouse 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. |
| 1114 |
|
| 1115 |
The behavior of mouse selection and dragging can now be customized with the [`configureMouse`](https://codemirror.net/5/doc/manual.html#option_configureMouse) option. |
| 1116 |
|
| 1117 |
Modes can now look ahead across line boundaries with the [`StringStream`](https://codemirror.net/5/doc/manual.html#StringStream)`.lookahead` method. |
| 1118 |
|
| 1119 |
Introduces a `"type"` token type, makes modes that recognize types output it, and add styling for it to the themes. |
| 1120 |
|
| 1121 |
New [`pasteLinesPerSelection`](https://codemirror.net/5/doc/manual.html#option_pasteLinesPerSelection) option to control the behavior of pasting multiple lines into multiple selections. |
| 1122 |
|
| 1123 |
[searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Support multi-line regular expression matches, and normalize strings when matching. |
| 1124 |
|
| 1125 |
## 5.26.0 (2017-05-22) |
| 1126 |
|
| 1127 |
### Bug fixes |
| 1128 |
|
| 1129 |
In textarea-mode, don't reset the input field during composition. |
| 1130 |
|
| 1131 |
More careful restoration of selections in widgets, during editor redraw. |
| 1132 |
|
| 1133 |
[javascript mode](https://codemirror.net/5/mode/javascript/): More TypeScript parsing fixes. |
| 1134 |
|
| 1135 |
[julia mode](https://codemirror.net/5/mode/julia/): Fix issue where the mode gets stuck. |
| 1136 |
|
| 1137 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Understand cross-line links, parse all bracketed things as links. |
| 1138 |
|
| 1139 |
[soy mode](https://codemirror.net/5/mode/soy/): Support single-quoted strings. |
| 1140 |
|
| 1141 |
[go mode](https://codemirror.net/5/mode/go/): Don't try to indent inside strings or comments. |
| 1142 |
|
| 1143 |
### New features |
| 1144 |
|
| 1145 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Parse line offsets in line or range specs. |
| 1146 |
|
| 1147 |
## 5.25.2 (2017-04-20) |
| 1148 |
|
| 1149 |
### Bug fixes |
| 1150 |
|
| 1151 |
Better handling of selections that cover the whole viewport in contentEditable-mode. |
| 1152 |
|
| 1153 |
No longer accidentally scroll the editor into view when calling `setValue`. |
| 1154 |
|
| 1155 |
Work around Chrome Android bug when converting screen coordinates to editor positions. |
| 1156 |
|
| 1157 |
Make sure long-clicking a selection sets a cursor and doesn't show the editor losing focus. |
| 1158 |
|
| 1159 |
Fix issue where pointer events were incorrectly disabled on Chrome's overlay scrollbars. |
| 1160 |
|
| 1161 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Recognize annotations and TypeScript-style type parameters. |
| 1162 |
|
| 1163 |
[shell mode](https://codemirror.net/5/mode/shell/): Handle nested braces. |
| 1164 |
|
| 1165 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Make parsing of strong/em delimiters CommonMark-compliant. |
| 1166 |
|
| 1167 |
## 5.25.0 (2017-03-20) |
| 1168 |
|
| 1169 |
### Bug fixes |
| 1170 |
|
| 1171 |
In contentEditable-mode, properly locate changes that repeat a character when inserted with IME. |
| 1172 |
|
| 1173 |
Fix handling of selections bigger than the viewport in contentEditable mode. |
| 1174 |
|
| 1175 |
Improve handling of changes that insert or delete lines in contentEditable mode. |
| 1176 |
|
| 1177 |
Count Unicode control characters 0x80 to 0x9F as special (non-printing) chars. |
| 1178 |
|
| 1179 |
Fix handling of shadow DOM roots when finding the active element. |
| 1180 |
|
| 1181 |
Add `role=presentation` to more DOM elements to improve screen reader support. |
| 1182 |
|
| 1183 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Make aligning of unchanged chunks more robust. |
| 1184 |
|
| 1185 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Fix comment-toggling on a block of text that starts and ends in a (different) block comment. |
| 1186 |
|
| 1187 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve support for TypeScript syntax. |
| 1188 |
|
| 1189 |
[r mode](https://codemirror.net/5/mode/r/): Fix indentation after semicolon-less statements. |
| 1190 |
|
| 1191 |
[shell mode](https://codemirror.net/5/mode/shell/): Properly handle escaped parentheses in parenthesized expressions. |
| 1192 |
|
| 1193 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix a few bugs around leaving fenced code blocks. |
| 1194 |
|
| 1195 |
[soy mode](https://codemirror.net/5/mode/soy/): Improve indentation. |
| 1196 |
|
| 1197 |
### New features |
| 1198 |
|
| 1199 |
[lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Support asynchronous linters that return promises. |
| 1200 |
|
| 1201 |
[continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Support continuing task lists. |
| 1202 |
|
| 1203 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Make Y behave like yy. |
| 1204 |
|
| 1205 |
[sql mode](https://codemirror.net/5/mode/sql/): Support sqlite dialect. |
| 1206 |
|
| 1207 |
## 5.24.2 (2017-02-22) |
| 1208 |
|
| 1209 |
### Bug fixes |
| 1210 |
|
| 1211 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Support computed class method names. |
| 1212 |
|
| 1213 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Improve aligning of unchanged code in the presence of marks and line widgets. |
| 1214 |
|
| 1215 |
## 5.24.0 (2017-02-20) |
| 1216 |
|
| 1217 |
### Bug fixes |
| 1218 |
|
| 1219 |
A cursor directly before a line-wrapping break is now drawn before or after the line break depending on which direction you arrived from. |
| 1220 |
|
| 1221 |
Visual cursor motion in line-wrapped right-to-left text should be much more correct. |
| 1222 |
|
| 1223 |
Fix bug in handling of read-only marked text. |
| 1224 |
|
| 1225 |
[shell mode](https://codemirror.net/5/mode/shell/): Properly tokenize nested parentheses. |
| 1226 |
|
| 1227 |
[python mode](https://codemirror.net/5/mode/python/): Support underscores in number literals. |
| 1228 |
|
| 1229 |
[sass mode](https://codemirror.net/5/mode/sass/): Uses the full list of CSS properties and keywords from the CSS mode, rather than defining its own incomplete subset. |
| 1230 |
|
| 1231 |
[css mode](https://codemirror.net/5/mode/css/): Expose `lineComment` property for LESS and SCSS dialects. Recognize vendor prefixes on pseudo-elements. |
| 1232 |
|
| 1233 |
[julia mode](https://codemirror.net/5/mode/julia/): Properly indent `elseif` lines. |
| 1234 |
|
| 1235 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Properly recognize the end of fenced code blocks when inside other markup. |
| 1236 |
|
| 1237 |
[scala mode](https://codemirror.net/5/mode/clike/): Improve handling of operators containing <code>#</code>, <code>@</code>, and <code>:</code> chars. |
| 1238 |
|
| 1239 |
[xml mode](https://codemirror.net/5/mode/xml/): Allow dashes in HTML tag names. |
| 1240 |
|
| 1241 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing of async methods, TypeScript-style comma-separated superclass lists. |
| 1242 |
|
| 1243 |
[indent-fold addon](https://codemirror.net/5/demo/folding.html): Ignore comment lines. |
| 1244 |
|
| 1245 |
### New features |
| 1246 |
|
| 1247 |
Positions now support a `sticky` property which determines whether they should be associated with the character before (value `"before"`) or after (value `"after"`) them. |
| 1248 |
|
| 1249 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Make it possible to remove built-in bindings through the API. |
| 1250 |
|
| 1251 |
[comment addon](https://codemirror.net/5/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. |
| 1252 |
|
| 1253 |
### Breaking changes |
| 1254 |
|
| 1255 |
The [sass mode](https://codemirror.net/5/mode/sass/) now depends on the [css mode](https://codemirror.net/5/mode/css/). |
| 1256 |
|
| 1257 |
## 5.23.0 (2017-01-19) |
| 1258 |
|
| 1259 |
### Bug fixes |
| 1260 |
|
| 1261 |
Presentation-related elements DOM elements are now marked as such to help screen readers. |
| 1262 |
|
| 1263 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Be more picky about what HTML tags look like to avoid false positives. |
| 1264 |
|
| 1265 |
### New features |
| 1266 |
|
| 1267 |
`findModeByMIME` now understands `+json` and `+xml` MIME suffixes. |
| 1268 |
|
| 1269 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Add support for an `override` option to ignore language-specific defaults. |
| 1270 |
|
| 1271 |
[panel addon](https://codemirror.net/5/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. |
| 1272 |
|
| 1273 |
## 5.22.2 (2017-01-12) |
| 1274 |
|
| 1275 |
### Bug fixes |
| 1276 |
|
| 1277 |
Include rollup.config.js in NPM package, so that it can be used to build from source. |
| 1278 |
|
| 1279 |
## 5.22.0 (2016-12-20) |
| 1280 |
|
| 1281 |
### Bug fixes |
| 1282 |
|
| 1283 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Make `selectBetweenBrackets` work with multiple cursors. |
| 1284 |
|
| 1285 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Fix issues with parsing complex TypeScript types, imports, and exports. |
| 1286 |
|
| 1287 |
A contentEditable editor instance with autofocus enabled no longer crashes during initializing. |
| 1288 |
|
| 1289 |
### New features |
| 1290 |
|
| 1291 |
[emacs bindings](https://codemirror.net/5/demo/emacs.html): Export `CodeMirror.emacs` to allow other addons to hook into Emacs-style functionality. |
| 1292 |
|
| 1293 |
[active-line addon](https://codemirror.net/5/doc/manual.html#addon_active-line): Add `nonEmpty` option. |
| 1294 |
|
| 1295 |
New event: [`optionChange`](https://codemirror.net/5/doc/manual.html#event_optionChange). |
| 1296 |
|
| 1297 |
## 5.21.0 (2016-11-21) |
| 1298 |
|
| 1299 |
### Bug fixes |
| 1300 |
|
| 1301 |
Tapping/clicking the editor in [contentEditable mode](https://codemirror.net/5/doc/manual.html#option_inputStyle) on Chrome now puts the cursor at the tapped position. |
| 1302 |
|
| 1303 |
Fix various crashes and misbehavior when reading composition events in [contentEditable mode](https://codemirror.net/5/doc/manual.html#option_inputStyle). |
| 1304 |
|
| 1305 |
Catches and ignores an IE 'Unspecified Error' when creating an editor in an iframe before there is a `<body>`. |
| 1306 |
|
| 1307 |
[merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Fix several issues in the chunk-aligning feature. |
| 1308 |
|
| 1309 |
[verilog mode](https://codemirror.net/5/mode/verilog): Rewritten to address various issues. |
| 1310 |
|
| 1311 |
[julia mode](https://codemirror.net/5/mode/julia): Recognize Julia 0.5 syntax. |
| 1312 |
|
| 1313 |
[swift mode](https://codemirror.net/5/mode/swift): Various fixes and adjustments to current syntax. |
| 1314 |
|
| 1315 |
[markdown mode](https://codemirror.net/5/mode/markdown): Allow lists without a blank line above them. |
| 1316 |
|
| 1317 |
### New features |
| 1318 |
|
| 1319 |
The [`setGutterMarker`](https://codemirror.net/5/doc/manual.html#setGutterMarker), [`clearGutter`](https://codemirror.net/5/doc/manual.html#clearGutter), and [`lineInfo`](https://codemirror.net/5/doc/manual.html#lineInfo) methods are now available on `Doc` objects. |
| 1320 |
|
| 1321 |
The [`heightAtLine`](https://codemirror.net/5/doc/manual.html#heightAtLine) method now takes an extra argument to allow finding the height at the top of the line's line widgets. |
| 1322 |
|
| 1323 |
[ruby mode](https://codemirror.net/5/mode/ruby): `else` and `elsif` are now immediately indented. |
| 1324 |
|
| 1325 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Bind Ctrl-T and Ctrl-D to in- and dedent in insert mode. |
| 1326 |
|
| 1327 |
## 5.20.2 (2016-10-21) |
| 1328 |
|
| 1329 |
### Bug fixes |
| 1330 |
|
| 1331 |
Fix `CodeMirror.version` returning the wrong version number. |
| 1332 |
|
| 1333 |
## 5.20.0 (2016-10-20) |
| 1334 |
|
| 1335 |
### Bug fixes |
| 1336 |
|
| 1337 |
Make `newlineAndIndent` command work with multiple cursors on the same line. |
| 1338 |
|
| 1339 |
Make sure keypress events for backspace are ignored. |
| 1340 |
|
| 1341 |
Tokens styled with overlays no longer get a nonsense `cm-cm-overlay` class. |
| 1342 |
|
| 1343 |
Line endings for pasted content are now normalized to the editor's [preferred ending](https://codemirror.net/5/doc/manual.html#option_lineSeparator). |
| 1344 |
|
| 1345 |
[javascript mode](https://codemirror.net/5/mode/javascript): Improve support for class expressions. Support TypeScript optional class properties, the `abstract` keyword, and return type declarations for arrow functions. |
| 1346 |
|
| 1347 |
[css mode](https://codemirror.net/5/mode/css): Fix highlighting of mixed-case keywords. |
| 1348 |
|
| 1349 |
[closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve behavior when typing a quote before a string. |
| 1350 |
|
| 1351 |
### New features |
| 1352 |
|
| 1353 |
The 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 run build` (but when installing from NPM, it is included). |
| 1354 |
|
| 1355 |
The [`refresh`](https://codemirror.net/5/doc/manual.html#event_refresh) event is now documented and stable. |
| 1356 |
|
| 1357 |
## 5.19.0 (2016-09-20) |
| 1358 |
|
| 1359 |
### Bugfixes |
| 1360 |
|
| 1361 |
[erlang mode](https://codemirror.net/5/mode/erlang): Fix mode crash when trying to read an empty context. |
| 1362 |
|
| 1363 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Fix broken behavior when toggling comments inside a comment. |
| 1364 |
|
| 1365 |
xml-fold addon: Fix a null-dereference bug. |
| 1366 |
|
| 1367 |
Page up and page down now do something even in single-line documents. |
| 1368 |
|
| 1369 |
Fix an issue where the cursor position could be off in really long (~8000 character) tokens. |
| 1370 |
|
| 1371 |
### New features |
| 1372 |
|
| 1373 |
[javascript mode](https://codemirror.net/5/mode/javascript): Better indentation when semicolons are missing. Better support for TypeScript classes, optional parameters, and the `type` keyword. |
| 1374 |
|
| 1375 |
The [`blur`](https://codemirror.net/5/doc/manual.html#event_blur) and [`focus`](https://codemirror.net/5/doc/manual.html#event_focus) events now pass the DOM event to their handlers. |
| 1376 |
|
| 1377 |
## 5.18.2 (2016-08-23) |
| 1378 |
|
| 1379 |
### Bugfixes |
| 1380 |
|
| 1381 |
[vue mode](https://codemirror.net/5/mode/vue): Fix outdated references to renamed Pug mode dependency. |
| 1382 |
|
| 1383 |
## 5.18.0 (2016-08-22) |
| 1384 |
|
| 1385 |
### Bugfixes |
| 1386 |
|
| 1387 |
Make sure [gutter backgrounds](https://codemirror.net/5/doc/manual.html#addLineClass) stick to the rest of the gutter during horizontal scrolling. |
| 1388 |
|
| 1389 |
The contenteditable [`inputStyle`](https://codemirror.net/5/doc/manual.html#option_inputStyle) now properly supports pasting on pre-Edge IE versions. |
| 1390 |
|
| 1391 |
[javascript mode](https://codemirror.net/5/mode/javascript): Fix some small parsing bugs and improve TypeScript support. |
| 1392 |
|
| 1393 |
[matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Fix bug where active highlighting was left in editor when the addon was disabled. |
| 1394 |
|
| 1395 |
[match-highlighter addon](https://codemirror.net/5/doc/manual.html#addon_match-highlighter): Only start highlighting things when the editor gains focus. |
| 1396 |
|
| 1397 |
[javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Also complete non-enumerable properties. |
| 1398 |
|
| 1399 |
### New features |
| 1400 |
|
| 1401 |
The [`addOverlay`](https://codemirror.net/5/doc/manual.html#addOverlay) method now supports a `priority` option to control the order in which overlays are applied. |
| 1402 |
|
| 1403 |
MIME types that end in `+json` now default to the JSON mode when the MIME itself is not defined. |
| 1404 |
|
| 1405 |
### Breaking changes |
| 1406 |
|
| 1407 |
The mode formerly known as Jade was renamed to [Pug](https://codemirror.net/5/mode/pug). |
| 1408 |
|
| 1409 |
The [Python mode](https://codemirror.net/5/mode/python) now defaults to Python 3 (rather than 2) syntax. |
| 1410 |
|
| 1411 |
## 5.17.0 (2016-07-19) |
| 1412 |
|
| 1413 |
### Bugfixes |
| 1414 |
|
| 1415 |
Fix problem with wrapped trailing whitespace displaying incorrectly. |
| 1416 |
|
| 1417 |
Prevent IME dialog from overlapping typed content in Chrome. |
| 1418 |
|
| 1419 |
Improve measuring of characters near a line wrap. |
| 1420 |
|
| 1421 |
[javascript mode](https://codemirror.net/5/mode/javascript): Improve support for `async`, allow trailing commas in `import` lists. |
| 1422 |
|
| 1423 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Fix backspace in replace mode. |
| 1424 |
|
| 1425 |
[sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix some key bindings on OS X to match Sublime Text. |
| 1426 |
|
| 1427 |
### New features |
| 1428 |
|
| 1429 |
[markdown mode](https://codemirror.net/5/mode/markdown): Add more classes to image links in highlight-formatting mode. |
| 1430 |
|
| 1431 |
## 5.16.0 (2016-06-20) |
| 1432 |
|
| 1433 |
### Bugfixes |
| 1434 |
|
| 1435 |
Fix glitches when dragging content caused by the drop indicator receiving mouse events. |
| 1436 |
|
| 1437 |
Make Control-drag work on Firefox. |
| 1438 |
|
| 1439 |
Make clicking or selection-dragging at the end of a wrapped line select the right position. |
| 1440 |
|
| 1441 |
[show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Prevent widget scrollbar from hiding part of the hint text. |
| 1442 |
|
| 1443 |
[rulers addon](https://codemirror.net/5/doc/manual.html#addon_rulers): Prevent rulers from forcing a horizontal editor scrollbar. |
| 1444 |
|
| 1445 |
### New features |
| 1446 |
|
| 1447 |
[search addon](https://codemirror.net/5/doc/manual.html#addon_search): Automatically bind search-related keys in persistent dialog. |
| 1448 |
|
| 1449 |
[sublime keymap](https://codemirror.net/5/demo/sublime.html): Add a multi-cursor aware smart backspace binding. |
| 1450 |
|
| 1451 |
## 5.15.2 (2016-05-20) |
| 1452 |
|
| 1453 |
### Bugfixes |
| 1454 |
|
| 1455 |
Fix a critical document corruption bug that occurs when a document is gradually grown. |
| 1456 |
|
| 1457 |
## 5.15.0 (2016-05-20) |
| 1458 |
|
| 1459 |
### Bugfixes |
| 1460 |
|
| 1461 |
Fix bug that caused the selection to reset when focusing the editor in contentEditable input mode. |
| 1462 |
|
| 1463 |
Fix issue where not all ASCII control characters were being replaced by placeholders. |
| 1464 |
|
| 1465 |
Remove the assumption that all modes have a `startState` method from several wrapping modes. |
| 1466 |
|
| 1467 |
Fix issue where the editor would complain about overlapping collapsed ranges when there weren't any. |
| 1468 |
|
| 1469 |
Optimize document tree building when loading or pasting huge chunks of content. |
| 1470 |
|
| 1471 |
[markdown mode](https://codemirror.net/5/mode/markdown/): Fix several issues in matching link targets. |
| 1472 |
|
| 1473 |
[clike mode](https://codemirror.net/5/mode/clike/): Improve indentation of C++ template declarations. |
| 1474 |
|
| 1475 |
### New features |
| 1476 |
|
| 1477 |
Explicitly bind Ctrl-O on OS X to make that binding (“open line”) act as expected. |
| 1478 |
|
| 1479 |
Pasting [linewise-copied](https://codemirror.net/5/doc/manual.html#option_lineWiseCopyCut) content when there is no selection now inserts the lines above the current line. |
| 1480 |
|
| 1481 |
[javascript mode](https://codemirror.net/5/mode/javascript/): Support `async`/`await` and improve support for TypeScript type syntax. |
| 1482 |
|
| 1483 |
## 5.14.2 (2016-04-20) |
| 1484 |
|
| 1485 |
### Bugfixes |
| 1486 |
|
| 1487 |
Push 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. |
| 1488 |
|
| 1489 |
Set `dataTransfer.effectAllowed` in `dragstart` handler to help browsers use the right drag icon. |
| 1490 |
|
| 1491 |
Add the [mbox mode](https://codemirror.net/5/mode/mbox/index.html) to `mode/meta.js`. |
| 1492 |
|
| 1493 |
## 5.14.0 (2016-04-20) |
| 1494 |
|
| 1495 |
### Bugfixes |
| 1496 |
|
| 1497 |
[`posFromIndex`](https://codemirror.net/5/doc/manual.html#posFromIndex) and [`indexFromPos`](https://codemirror.net/5/doc/manual.html#indexFromPos) now take [`lineSeparator`](https://codemirror.net/5/doc/manual.html#option_lineSeparator) into account. |
| 1498 |
|
| 1499 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Only call `.save()` when it is actually available. |
| 1500 |
|
| 1501 |
[comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Be careful not to mangle multi-line strings. |
| 1502 |
|
| 1503 |
[Python mode](https://codemirror.net/5/mode/python/index.html): Improve distinguishing of decorators from `@` operators. |
| 1504 |
|
| 1505 |
[`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks): No longer return marks that touch but don't overlap given range. |
| 1506 |
|
| 1507 |
### New features |
| 1508 |
|
| 1509 |
[vim bindings](https://codemirror.net/5/demo/vim.html): Add yank command. |
| 1510 |
|
| 1511 |
[match-highlighter addon](https://codemirror.net/5/doc/manual.html#addon_match-highlighter): Add `trim` option to disable ignoring of whitespace. |
| 1512 |
|
| 1513 |
[PowerShell mode](https://codemirror.net/5/mode/powershell/index.html): Added. |
| 1514 |
|
| 1515 |
[Yacas mode](https://codemirror.net/5/mode/yacas/index.html): Added. |
| 1516 |
|
| 1517 |
[Web IDL mode](https://codemirror.net/5/mode/webidl/index.html): Added. |
| 1518 |
|
| 1519 |
[SAS mode](https://codemirror.net/5/mode/sas/index.html): Added. |
| 1520 |
|
| 1521 |
[mbox mode](https://codemirror.net/5/mode/mbox/index.html): Added. |
| 1522 |
|
| 1523 |
## 5.13.2 (2016-03-23) |
| 1524 |
|
| 1525 |
### Bugfixes |
| 1526 |
|
| 1527 |
Solves a problem where the gutter would sometimes not extend all the way to the end of the document. |
| 1528 |
|
| 1529 |
## 5.13.0 (2016-03-21) |
| 1530 |
|
| 1531 |
### New features |
| 1532 |
|
| 1533 |
New DOM event forwarded: [`"dragleave"`](https://codemirror.net/5/doc/manual.html#event_dom). |
| 1534 |
|
| 1535 |
[protobuf mode](https://codemirror.net/5/mode/protobuf/index.html): Newly added. |
| 1536 |
|
| 1537 |
### Bugfixes |
| 1538 |
|
| 1539 |
Fix problem where [`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks) sometimes failed to find multi-line marks. |
| 1540 |
|
| 1541 |
Fix crash that showed up when atomic ranges and bidi text were combined. |
| 1542 |
|
| 1543 |
[show-hint addon](https://codemirror.net/5/demo/complete.html): Completion widgets no longer close when the line indented or dedented. |
| 1544 |
|
| 1545 |
[merge addon](https://codemirror.net/5/demo/merge.html): Fix bug when merging chunks at the end of the file. |
| 1546 |
|
| 1547 |
[placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder): No longer gets confused by [`swapDoc`](https://codemirror.net/5/doc/manual.html#swapDoc). |
| 1548 |
|
| 1549 |
[simplescrollbars addon](https://codemirror.net/5/doc/manual.html#addon_simplescrollbars): Fix invalid state when deleting at end of document. |
| 1550 |
|
| 1551 |
[clike mode](https://codemirror.net/5/mode/clike/index.html): No longer gets confused when a comment starts after an operator. |
| 1552 |
|
| 1553 |
[markdown mode](https://codemirror.net/5/mode/markdown/index.html): Now supports CommonMark-style flexible list indentation. |
| 1554 |
|
| 1555 |
[dylan mode](https://codemirror.net/5/mode/dylan/index.html): Several improvements and fixes. |
| 1556 |
|
| 1557 |
## 5.12.0 (2016-02-19) |
| 1558 |
|
| 1559 |
### New features |
| 1560 |
|
| 1561 |
[Vim bindings](https://codemirror.net/5/demo/vim.html): Ctrl-Q is now an alias for Ctrl-V. |
| 1562 |
|
| 1563 |
[Vim bindings](https://codemirror.net/5/demo/vim.html): The Vim API now exposes an `unmap` method to unmap bindings. |
| 1564 |
|
| 1565 |
[active-line addon](https://codemirror.net/5/demo/activeline.html): This addon can now style the active line's gutter. |
| 1566 |
|
| 1567 |
[FCL mode](https://codemirror.net/5/mode/fcl/): Newly added. |
| 1568 |
|
| 1569 |
[SQL mode](https://codemirror.net/5/mode/sql/): Now has a Postgresql dialect. |
| 1570 |
|
| 1571 |
### Bugfixes |
| 1572 |
|
| 1573 |
Fix [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. |
| 1574 |
|
| 1575 |
Use 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. |
| 1576 |
|
| 1577 |
Solve a [problem](https://github.com/codemirror/CodeMirror/issues/3821) where the horizontal scrollbar could hide text in Firefox. |
| 1578 |
|
| 1579 |
Fix a [bug](https://github.com/codemirror/CodeMirror/issues/3834) that caused phantom scroll space under the text in some situations. |
| 1580 |
|
| 1581 |
[Sublime Text bindings](https://codemirror.net/5/demo/sublime.html): Bind delete-line to Shift-Ctrl-K on OS X. |
| 1582 |
|
| 1583 |
[Markdown mode](https://codemirror.net/5/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. |
| 1584 |
|
| 1585 |
[Markdown mode](https://codemirror.net/5/mode/markdown/): Ignore backslashes in code fragments. |
| 1586 |
|
| 1587 |
[Markdown mode](https://codemirror.net/5/mode/markdown/): Use whichever mode is registered as `text/html` to parse HTML. |
| 1588 |
|
| 1589 |
[Clike mode](https://codemirror.net/5/mode/clike/): Improve indentation of Scala `=>` functions. |
| 1590 |
|
| 1591 |
[Python mode](https://codemirror.net/5/mode/python/): Improve indentation of bracketed code. |
| 1592 |
|
| 1593 |
[HTMLMixed mode](https://codemirror.net/5/mode/htmlmixed/): Support multi-line opening tags for sub-languages (`<script>`, `<style>`, etc). |
| 1594 |
|
| 1595 |
[Spreadsheet mode](https://codemirror.net/5/mode/spreadsheet/): Fix bug where the mode did not advance the stream when finding a backslash. |
| 1596 |
|
| 1597 |
[XML mode](https://codemirror.net/5/mode/xml/): The mode now takes a `matchClosing` option to configure whether mismatched closing tags should be highlighted as errors. |
| 1598 |
|
| 1599 |
## 5.11.0 (2016-01-20) |
| 1600 |
|
| 1601 |
* New modes: [JSX](https://codemirror.net/5/mode/jsx/index.html), [literate Haskell](https://codemirror.net/5/mode/haskell-literate/index.html) |
| 1602 |
* The editor now forwards more [DOM events](https://codemirror.net/5/doc/manual.html#event_dom): `cut`, `copy`, `paste`, and `touchstart`. It will also forward `mousedown` for drag events |
| 1603 |
* Fixes a bug where bookmarks next to collapsed spans were not rendered |
| 1604 |
* The [Swift](https://codemirror.net/5/mode/swift/index.html) mode now supports auto-indentation |
| 1605 |
* Frontmatters in the [YAML frontmatter](https://codemirror.net/5/mode/yaml-frontmatter/index.html) mode are now optional as intended |
| 1606 |
|
| 1607 |
## 5.10.0 (2015-12-21) |
| 1608 |
|
| 1609 |
* Modify the way [atomic ranges](https://codemirror.net/5/doc/manual.html#mark_atomic) are skipped by selection to try and make it less surprising. |
| 1610 |
* The [Swift mode](https://codemirror.net/5/mode/swift/index.html) was rewritten. |
| 1611 |
* New addon: [jump-to-line](https://codemirror.net/5/doc/manual.html#addon_jump-to-line). |
| 1612 |
* New method: [`isReadOnly`](https://codemirror.net/5/doc/manual.html#isReadOnly). |
| 1613 |
* The [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint) now defaults to picking completions on single click. |
| 1614 |
* The object passed to [`"beforeSelectionChange"`](https://codemirror.net/5/doc/manual.html#event_beforeSelectionChange) events now has an `origin` property. |
| 1615 |
* New mode: [Crystal](https://codemirror.net/5/mode/crystal/index.html). |
| 1616 |
|
| 1617 |
## 5.9.0 (2015-11-23) |
| 1618 |
|
| 1619 |
* Improve the way overlay (OS X-style) scrollbars are handled |
| 1620 |
* Make [annotatescrollbar](https://codemirror.net/5/doc/manual.html#addon_annotatescrollbar) and scrollpastend addons work properly together |
| 1621 |
* Make [show-hint](https://codemirror.net/5/doc/manual.html#addon_show-hint) addon select options on single click by default, move selection to hovered item |
| 1622 |
* Properly fold comments that include block-comment-start markers |
| 1623 |
* Many small language mode fixes |
| 1624 |
|
| 1625 |
## 5.8.0 (2015-10-20) |
| 1626 |
|
| 1627 |
* Fixes an infinite loop in the [hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap) |
| 1628 |
* New modes: [NSIS](https://codemirror.net/5/mode/nsis/index.html), [Ceylon](https://codemirror.net/5/mode/clike/index.html) |
| 1629 |
* The Kotlin mode is now a [clike](https://codemirror.net/5/mode/clike/index.html) dialect, rather than a stand-alone mode |
| 1630 |
* New option: [`allowDropFileTypes`](https://codemirror.net/5/doc/manual.html#option_allowDropFileTypes). Binary files can no longer be dropped into CodeMirror |
| 1631 |
* New themes: [bespin](https://codemirror.net/5/demo/theme.html#bespin), [hopscotch](https://codemirror.net/5/demo/theme.html#hopscotch), [isotope](https://codemirror.net/5/demo/theme.html#isotope), [railscasts](https://codemirror.net/5/demo/theme.html#railscasts) |
| 1632 |
|
| 1633 |
## 5.7.0 (2015-09-21) |
| 1634 |
|
| 1635 |
* New modes: [Vue](https://codemirror.net/5/mode/vue/index.html), [Oz](https://codemirror.net/5/mode/oz/index.html), [MscGen](https://codemirror.net/5/mode/mscgen/index.html) (and dialects), [Closure Stylesheets](https://codemirror.net/5/mode/css/gss.html) |
| 1636 |
* Implement [CommonMark](http://commonmark.org)-style flexible list indent and cross-line code spans in [Markdown](https://codemirror.net/5/mode/markdown/index.html) mode |
| 1637 |
* Add a replace-all button to the [search addon](https://codemirror.net/5/doc/manual.html#addon_search), and make the persistent search dialog transparent when it obscures the match |
| 1638 |
* Handle `async`/`await` and ocal and binary numbers in [JavaScript mode](https://codemirror.net/5/mode/javascript/index.html) |
| 1639 |
* Fix various issues with the [Haxe mode](https://codemirror.net/5/mode/haxe/index.html) |
| 1640 |
* Make the [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets) select only the wrapped text when wrapping selection in brackets |
| 1641 |
* Tokenize properties as properties in the [CoffeeScript mode](https://codemirror.net/5/mode/coffeescript/index.html) |
| 1642 |
* The [placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder) now accepts a DOM node as well as a string placeholder |
| 1643 |
|
| 1644 |
## 5.6.0 (2015-08-20) |
| 1645 |
|
| 1646 |
* Fix bug where you could paste into a `readOnly` editor |
| 1647 |
* Show a cursor at the drop location when dragging over the editor |
| 1648 |
* The [Rust mode](https://codemirror.net/5/mode/rust/index.html) was rewritten to handle modern Rust |
| 1649 |
* The editor and theme CSS was cleaned up. Some selectors are now less specific than before |
| 1650 |
* New theme: [abcdef](https://codemirror.net/5/demo/theme.html#abcdef) |
| 1651 |
* Lines longer than [`maxHighlightLength`](https://codemirror.net/5/doc/manual.html#option_maxHighlightLength) are now less likely to mess up indentation |
| 1652 |
* New addons: [`autorefresh`](https://codemirror.net/5/doc/manual.html#addon_autorefresh) for refreshing an editor the first time it becomes visible, and `html-lint` for using [HTMLHint](http://htmlhint.com/) |
| 1653 |
* The [`search`](https://codemirror.net/5/doc/manual.html#addon_search) addon now recognizes `\r` and `\n` in pattern and replacement input |
| 1654 |
|
| 1655 |
## 5.5.0 (2015-07-20) |
| 1656 |
|
| 1657 |
* New option: [`lineSeparator`](https://codemirror.net/5/doc/manual.html#option_lineSeparator) (with corresponding [method](https://codemirror.net/5/doc/manual.html#lineSeparator)) |
| 1658 |
* New themes: [dracula](https://codemirror.net/5/demo/theme.html#dracula), [seti](https://codemirror.net/5/demo/theme.html#seti), [yeti](https://codemirror.net/5/demo/theme.html#yeti), [material](https://codemirror.net/5/demo/theme.html#material), and [icecoder](https://codemirror.net/5/demo/theme.html#icecoder) |
| 1659 |
* New modes: [Brainfuck](https://codemirror.net/5/mode/brainfuck/index.html), [VHDL](https://codemirror.net/5/mode/vhdl/index.html), Squirrel ([clike](https://codemirror.net/5/mode/clike/index.html) dialect) |
| 1660 |
* Define a `findPersistent` command in the [search](https://codemirror.net/5/demo/search.html) addon, for a dialog that stays open as you cycle through matches |
| 1661 |
* From this release on, the NPM module doesn't include documentation and demos |
| 1662 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.4.0...5.5.0) |
| 1663 |
|
| 1664 |
## 5.4.0 (2015-06-25) |
| 1665 |
|
| 1666 |
* New modes: [Twig](https://codemirror.net/5/mode/twig/index.html), [Elm](https://codemirror.net/5/mode/elm/index.html), [Factor](https://codemirror.net/5/mode/factor/index.html), [Swift](https://codemirror.net/5/mode/swift/index.html) |
| 1667 |
* Prefer clipboard API (if available) when pasting |
| 1668 |
* Refined definition highlighting in [clike](https://codemirror.net/5/mode/clike/index.html) mode |
| 1669 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.3.0...5.4.0) |
| 1670 |
|
| 1671 |
## 5.3.0 (2015-05-20) |
| 1672 |
|
| 1673 |
* Fix several regressions in the [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint) addon (`completeSingle` option, `"shown"` and `"close"` events) |
| 1674 |
* The [vim mode](https://codemirror.net/5/demo/vim.html) API was [documented](https://codemirror.net/5/doc/manual.html#vimapi) |
| 1675 |
* New modes: [ASN.1](https://codemirror.net/5/mode/asn.1/index.html), [TTCN](https://codemirror.net/5/mode/ttcn/index.html), and [TTCN-CFG](https://codemirror.net/5/mode/ttcn-cfg/index.html) |
| 1676 |
* The [clike](https://codemirror.net/5/mode/clike/index.html) mode can now deep-indent `switch` statements, and roughly recognizes types and defined identifiers |
| 1677 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.2.0...5.3.0) |
| 1678 |
|
| 1679 |
## 5.2.0 (2015-04-20) |
| 1680 |
|
| 1681 |
* Fix several race conditions in [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint)'s asynchronous mode |
| 1682 |
* Fix backspace binding in [Sublime bindings](https://codemirror.net/5/demo/sublime.html) |
| 1683 |
* Change the way IME is handled in the `"textarea"` [input style](https://codemirror.net/5/doc/manual.html#option_inputStyle) |
| 1684 |
* New modes: [MUMPS](https://codemirror.net/5/mode/mumps/index.html), [Handlebars](https://codemirror.net/5/mode/handlebars/index.html) |
| 1685 |
* Rewritten modes: [Django](https://codemirror.net/5/mode/django/index.html), [Z80](https://codemirror.net/5/mode/z80/index.html) |
| 1686 |
* New theme: [Liquibyte](https://codemirror.net/5/demo/theme.html#liquibyte) |
| 1687 |
* New option: [`lineWiseCopyCut`](https://codemirror.net/5/doc/manual.html#option_lineWiseCopyCut) |
| 1688 |
* The [Vim mode](https://codemirror.net/5/demo/vim.html) now supports buffer-local options and the `filetype` setting |
| 1689 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.1.0...5.2.0) |
| 1690 |
|
| 1691 |
## 5.1.0 (2015-03-23) |
| 1692 |
|
| 1693 |
* New modes: [ASCII armor](https://codemirror.net/5/mode/asciiarmor/index.html) (PGP data), [Troff](https://codemirror.net/5/mode/troff/index.html), and [CMake](https://codemirror.net/5/mode/cmake/index.html). |
| 1694 |
* Remove SmartyMixed mode, rewrite [Smarty](https://codemirror.net/5/mode/smarty/index.html) mode to supersede it. |
| 1695 |
* New commands in the [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): `goNextDiff` and `goPrevDiff`. |
| 1696 |
* The [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets) can now be configured per mode. |
| 1697 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.0.0...5.1.0). |
| 1698 |
|
| 1699 |
## 5.0.0 (2015-02-20) |
| 1700 |
|
| 1701 |
* Experimental mobile support (tested on iOS, Android Chrome, stock Android browser) |
| 1702 |
* New option [`inputStyle`](https://codemirror.net/5/doc/manual.html#option_inputStyle) to switch between hidden textarea and contenteditable input. |
| 1703 |
* The [`getInputField`](https://codemirror.net/5/doc/manual.html#getInputField) method is no longer guaranteed to return a textarea. |
| 1704 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.13.0...5.0.0). |
| 1705 |
|
| 1706 |
## 4.13.0 (2015-02-20) |
| 1707 |
|
| 1708 |
* Fix the way the [`closetag`](https://codemirror.net/5/demo/closetag.html) demo handles the slash character. |
| 1709 |
* New modes: [Forth](https://codemirror.net/5/mode/forth/index.html), [Stylus](https://codemirror.net/5/mode/stylus/index.html). |
| 1710 |
* Make the [CSS mode](https://codemirror.net/5/mode/css/index.html) understand some modern CSS extensions. |
| 1711 |
* Have the [Scala mode](https://codemirror.net/5/mode/clike/index.html) handle symbols and triple-quoted strings. |
| 1712 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.12.0...4.13.0). |
| 1713 |
|
| 1714 |
## 4.12.0 (2015-01-22) |
| 1715 |
|
| 1716 |
* The [`closetag`](https://codemirror.net/5/doc/manual.html#addon_closetag) addon now defines a `"closeTag"` command. |
| 1717 |
* Adds a `findModeByFileName` to the [mode metadata](https://codemirror.net/5/doc/manual.html#addon_meta) addon. |
| 1718 |
* [Simple mode](https://codemirror.net/5/demo/simplemode.html) rules can now contain a `sol` property to only match at the start of a line. |
| 1719 |
* New addon: [`selection-pointer`](https://codemirror.net/5/doc/manual.html#addon_selection-pointer) to style the mouse cursor over the selection. |
| 1720 |
* Improvements to the [Sass mode](https://codemirror.net/5/mode/sass/index.html)'s indentation. |
| 1721 |
* The [Vim keymap](https://codemirror.net/5/demo/vim.html)'s search functionality now supports [scrollbar annotation](https://codemirror.net/5/doc/manual.html#addon_matchesonscrollbar). |
| 1722 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.11.0...4.12.0). |
| 1723 |
|
| 1724 |
## 4.11.0 (2015-01-09) |
| 1725 |
|
| 1726 |
Unfortunately, 4.10 did not take care of the Firefox scrolling issue entirely. This release adds two more patches to address that. |
| 1727 |
|
| 1728 |
## 4.10.0 (2014-12-29) |
| 1729 |
|
| 1730 |
Emergency single-patch update to 4.9\. Fixes Firefox-specific problem where the cursor could end up behind the horizontal scrollbar. |
| 1731 |
|
| 1732 |
## 4.9.0 (2014-12-23) |
| 1733 |
|
| 1734 |
* Overhauled scroll bar handling. Add pluggable [scrollbar implementations](https://codemirror.net/5/demo/simplescrollbars.html). |
| 1735 |
* Tweaked behavior for the [completion addons](https://codemirror.net/5/doc/manual.html#addon_show-hint) to not take text after cursor into account. |
| 1736 |
* Two new optional features in the [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): aligning editors, and folding unchanged text. |
| 1737 |
* New modes: [Dart](https://codemirror.net/5/mode/dart/index.html), [EBNF](https://codemirror.net/5/mode/ebnf/index.html), [spreadsheet](https://codemirror.net/5/mode/spreadsheet/index.html), and [Soy](https://codemirror.net/5/mode/soy/index.html). |
| 1738 |
* New [addon](https://codemirror.net/5/demo/panel.html) to show persistent panels below/above an editor. |
| 1739 |
* New themes: [zenburn](https://codemirror.net/5/demo/theme.html#zenburn) and [tomorrow night bright](https://codemirror.net/5/demo/theme.html#tomorrow-night-bright). |
| 1740 |
* Allow ctrl-click to clear existing cursors. |
| 1741 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.8.0...4.9.0). |
| 1742 |
|
| 1743 |
## 4.8.0 (2014-11-22) |
| 1744 |
|
| 1745 |
* Built-in support for [multi-stroke key bindings](https://codemirror.net/5/doc/manual.html#normalizeKeyMap). |
| 1746 |
* New method: [`getLineTokens`](https://codemirror.net/5/doc/manual.html#getLineTokens). |
| 1747 |
* New modes: [dockerfile](https://codemirror.net/5/mode/dockerfile/index.html), [IDL](https://codemirror.net/5/mode/idl/index.html), [Objective C](https://codemirror.net/5/mode/clike/index.html) (crude). |
| 1748 |
* Support styling of gutter backgrounds, allow `"gutter"` styles in [`addLineClass`](https://codemirror.net/5/doc/manual.html#addLineClass). |
| 1749 |
* Many improvements to the [Vim mode](https://codemirror.net/5/demo/vim.html), rewritten visual mode. |
| 1750 |
* Improvements to modes: [gfm](https://codemirror.net/5/mode/gfm/index.html) (strikethrough), [SPARQL](https://codemirror.net/5/mode/sparql/index.html) (version 1.1 support), and [sTeX](https://codemirror.net/5/mode/stex/index.html) (no more runaway math mode). |
| 1751 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.7.0...4.8.0). |
| 1752 |
|
| 1753 |
## 4.7.0 (2014-10-20) |
| 1754 |
|
| 1755 |
* **Incompatible**: The [lint addon](https://codemirror.net/5/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. |
| 1756 |
* Improved handling of unicode identifiers in modes for languages that support them. |
| 1757 |
* More mode improvements: [CoffeeScript](https://codemirror.net/5/mode/coffeescript/index.html) (indentation), [Verilog](https://codemirror.net/5/mode/verilog/index.html) (indentation), [Scala](https://codemirror.net/5/mode/clike/index.html) (indentation, triple-quoted strings), and [PHP](https://codemirror.net/5/mode/php/index.html) (interpolated variables in heredoc strings). |
| 1758 |
* New modes: [Textile](https://codemirror.net/5/mode/textile/index.html) and [Tornado templates](https://codemirror.net/5/mode/tornado/index.html). |
| 1759 |
* Experimental new [way to define modes](https://codemirror.net/5/demo/simplemode.html). |
| 1760 |
* Improvements to the [Vim bindings](https://codemirror.net/5/demo/vim.html): Arbitrary insert mode key mappings are now possible, and text objects are supported in visual mode. |
| 1761 |
* The mode [meta-information file](https://codemirror.net/5/mode/meta.js) now includes information about file extensions, and [helper functions](https://codemirror.net/5/doc/manual.html#addon_meta) `findModeByMIME` and `findModeByExtension`. |
| 1762 |
* New logo! |
| 1763 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.6.0...4.7.0). |
| 1764 |
|
| 1765 |
## 4.6.0 (2014-09-19) |
| 1766 |
|
| 1767 |
* New mode: [Modelica](https://codemirror.net/5/mode/modelica/index.html) |
| 1768 |
* New method: [`findWordAt`](https://codemirror.net/5/doc/manual.html#findWordAt) |
| 1769 |
* Make it easier to [use text background styling](https://codemirror.net/5/demo/markselection.html) |
| 1770 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.5.0...4.6.0). |
| 1771 |
|
| 1772 |
## 4.5.0 (2014-08-21) |
| 1773 |
|
| 1774 |
* Fix several serious bugs with horizontal scrolling |
| 1775 |
* New mode: [Slim](https://codemirror.net/5/mode/slim/index.html) |
| 1776 |
* New command: [`goLineLeftSmart`](https://codemirror.net/5/doc/manual.html#command_goLineLeftSmart) |
| 1777 |
* More fixes and extensions for the [Vim](https://codemirror.net/5/demo/vim.html) visual block mode |
| 1778 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.4.0...4.5.0). |
| 1779 |
|
| 1780 |
## 4.4.0 (2014-07-21) |
| 1781 |
|
| 1782 |
* **Note:** Some events might now fire in slightly different order (`"change"` is still guaranteed to fire before `"cursorActivity"`) |
| 1783 |
* Nested operations in multiple editors are now synced (complete at same time, reducing DOM reflows) |
| 1784 |
* Visual block mode for [vim](https://codemirror.net/5/demo/vim.html) (<C-v>) is nearly complete |
| 1785 |
* New mode: [Kotlin](https://codemirror.net/5/mode/kotlin/index.html) |
| 1786 |
* Better multi-selection paste for text copied from multiple CodeMirror selections |
| 1787 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.3.0...4.4.0). |
| 1788 |
|
| 1789 |
## 4.3.0 (2014-06-23) |
| 1790 |
|
| 1791 |
* Several [vim bindings](https://codemirror.net/5/demo/vim.html) improvements: search and exCommand history, global flag for `:substitute`, `:global` command. |
| 1792 |
* Allow hiding the cursor by setting [`cursorBlinkRate`](https://codemirror.net/5/doc/manual.html#option_cursorBlinkRate) to a negative value. |
| 1793 |
* Make gutter markers themeable, use this in foldgutter. |
| 1794 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.2.0...4.3.0). |
| 1795 |
|
| 1796 |
## 4.2.0 (2014-05-19) |
| 1797 |
|
| 1798 |
* Fix problem where some modes were broken by the fact that empty tokens were forbidden. |
| 1799 |
* Several fixes to context menu handling. |
| 1800 |
* On undo, scroll _change_, not cursor, into view. |
| 1801 |
* Rewritten [Jade](https://codemirror.net/5/mode/jade/index.html) mode. |
| 1802 |
* Various improvements to [Shell](https://codemirror.net/5/mode/shell/index.html) (support for more syntax) and [Python](https://codemirror.net/5/mode/python/index.html) (better indentation) modes. |
| 1803 |
* New mode: [Cypher](https://codemirror.net/5/mode/cypher/index.html). |
| 1804 |
* New theme: [Neo](https://codemirror.net/5/demo/theme.html#neo). |
| 1805 |
* Support direct styling options (color, line style, width) in the [rulers](https://codemirror.net/5/doc/manual.html#addon_rulers) addon. |
| 1806 |
* Recognize per-editor configuration for the [show-hint](https://codemirror.net/5/doc/manual.html#addon_show-hint) and [foldcode](https://codemirror.net/5/doc/manual.html#addon_foldcode) addons. |
| 1807 |
* More intelligent scanning for existing close tags in [closetag](https://codemirror.net/5/doc/manual.html#addon_closetag) addon. |
| 1808 |
* In the [Vim bindings](https://codemirror.net/5/demo/vim.html): Fix bracket matching, support case conversion in visual mode, visual paste, append action. |
| 1809 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.1.0...4.2.0). |
| 1810 |
|
| 1811 |
## 4.1.0 (2014-04-22) |
| 1812 |
|
| 1813 |
* _Slightly incompatible_: The [`"cursorActivity"`](https://codemirror.net/5/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). |
| 1814 |
* New command: [`insertSoftTab`](https://codemirror.net/5/doc/manual.html#command_insertSoftTab). |
| 1815 |
* New mode: [Django](https://codemirror.net/5/mode/django/index.html). |
| 1816 |
* Improved modes: [Verilog](https://codemirror.net/5/mode/verilog/index.html) (rewritten), [Jinja2](https://codemirror.net/5/mode/jinja2/index.html), [Haxe](https://codemirror.net/5/mode/haxe/index.html), [PHP](https://codemirror.net/5/mode/php/index.html) (string interpolation highlighted), [JavaScript](https://codemirror.net/5/mode/javascript/index.html) (indentation of trailing else, template strings), [LiveScript](https://codemirror.net/5/mode/livescript/index.html) (multi-line strings). |
| 1817 |
* Many small issues from the 3.x→4.x transition were found and fixed. |
| 1818 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.0.3...4.1.0). |
| 1819 |
|
| 1820 |
## 3.24.0 (2014-04-22) |
| 1821 |
|
| 1822 |
Merges 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. |
| 1823 |
|
| 1824 |
## 3.23.0 (2014-03-20) |
| 1825 |
|
| 1826 |
* In the [XML mode](https://codemirror.net/5/mode/xml/index.html), add `brackets` style to angle brackets, fix case-sensitivity of tags for HTML. |
| 1827 |
* New mode: [Dylan](https://codemirror.net/5/mode/dylan/index.html). |
| 1828 |
* Many improvements to the [Vim bindings](https://codemirror.net/5/demo/vim.html). |
| 1829 |
|
| 1830 |
## 3.22.0 (2014-02-21) |
| 1831 |
|
| 1832 |
* Adds the [`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks) method. |
| 1833 |
* New addons: [rulers](https://codemirror.net/5/doc/manual.html#addon_rulers), markdown-fold, yaml-lint. |
| 1834 |
* New theme: [mdn-like](https://codemirror.net/5/demo/theme.html#mdn-like). |
| 1835 |
* New mode: [Solr](https://codemirror.net/5/mode/solr/index.html). |
| 1836 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.21.0...3.22.0). |
| 1837 |
|
| 1838 |
## 3.21.0 (2014-01-16) |
| 1839 |
|
| 1840 |
* Auto-indenting a block will no longer add trailing whitespace to blank lines. |
| 1841 |
* Marking text has a new option [`clearWhenEmpty`](https://codemirror.net/5/doc/manual.html#markText) to control auto-removal. |
| 1842 |
* Several bugfixes in the handling of bidirectional text. |
| 1843 |
* The [XML](https://codemirror.net/5/mode/xml/index.html) and [CSS](https://codemirror.net/5/mode/css/index.html) modes were largely rewritten. [LESS](https://codemirror.net/5/mode/css/less.html) support was added to the CSS mode. |
| 1844 |
* The OCaml mode was moved to an [mllike](https://codemirror.net/5/mode/mllike/index.html) mode, F# support added. |
| 1845 |
* Make it possible to fetch multiple applicable helper values with [`getHelpers`](https://codemirror.net/5/doc/manual.html#getHelpers), and to register helpers matched on predicates with [`registerGlobalHelper`](https://codemirror.net/5/doc/manual.html#registerGlobalHelper). |
| 1846 |
* New theme [pastel-on-dark](https://codemirror.net/5/demo/theme.html#pastel-on-dark). |
| 1847 |
* Better ECMAScript 6 support in [JavaScript](https://codemirror.net/5/mode/javascript/index.html) mode. |
| 1848 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.20.0...3.21.0). |
| 1849 |
|
| 1850 |
## 3.20.0 (2013-11-21) |
| 1851 |
|
| 1852 |
* New modes: [Julia](https://codemirror.net/5/mode/julia/index.html) and [PEG.js](https://codemirror.net/5/mode/pegjs/index.html). |
| 1853 |
* Support ECMAScript 6 in the [JavaScript mode](https://codemirror.net/5/mode/javascript/index.html). |
| 1854 |
* Improved indentation for the [CoffeeScript mode](https://codemirror.net/5/mode/coffeescript/index.html). |
| 1855 |
* Make non-printable-character representation [configurable](https://codemirror.net/5/doc/manual.html#option_specialChars). |
| 1856 |
* Add ‘notification’ functionality to [dialog](https://codemirror.net/5/doc/manual.html#addon_dialog) addon. |
| 1857 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.19.0...3.20.0). |
| 1858 |
|
| 1859 |
## 3.19.0 (2013-10-21) |
| 1860 |
|
| 1861 |
* New modes: [Eiffel](https://codemirror.net/5/mode/eiffel/index.html), [Gherkin](https://codemirror.net/5/mode/gherkin/index.html), [MSSQL dialect](https://codemirror.net/5/mode/sql/?mime=text/x-mssql). |
| 1862 |
* New addons: [hardwrap](https://codemirror.net/5/doc/manual.html#addon_hardwrap), [sql-hint](https://codemirror.net/5/doc/manual.html#addon_sql-hint). |
| 1863 |
* New theme: [MBO](https://codemirror.net/5/demo/theme.html#mbo). |
| 1864 |
* Add [support](https://codemirror.net/5/doc/manual.html#token_style_line) for line-level styling from mode tokenizers. |
| 1865 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.18.0...3.19.0). |
| 1866 |
|
| 1867 |
## 3.18.0 (2013-09-23) |
| 1868 |
|
| 1869 |
Emergency release to fix a problem in 3.17 where `.setOption("lineNumbers", false)` would raise an error. |
| 1870 |
|
| 1871 |
## 3.17.0 (2013-09-23) |
| 1872 |
|
| 1873 |
* New modes: [Fortran](https://codemirror.net/5/mode/fortran/index.html), [Octave](https://codemirror.net/5/mode/octave/index.html) (Matlab), [TOML](https://codemirror.net/5/mode/toml/index.html), and [DTD](https://codemirror.net/5/mode/dtd/index.html). |
| 1874 |
* New addons: [`css-lint`](https://codemirror.net/5/addon/lint/css-lint.js), [`css-hint`](https://codemirror.net/5/doc/manual.html#addon_css-hint). |
| 1875 |
* Improve resilience to CSS 'frameworks' that globally mess up `box-sizing`. |
| 1876 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.16.0...3.17.0). |
| 1877 |
|
| 1878 |
## 3.16.0 (2013-08-21) |
| 1879 |
|
| 1880 |
* The whole codebase is now under a single [license](https://codemirror.net/5/LICENSE) file. |
| 1881 |
* The project page was overhauled and redesigned. |
| 1882 |
* New themes: [Paraiso](https://codemirror.net/5/demo/theme.html#paraiso-dark) ([light](https://codemirror.net/5/demo/theme.html#paraiso-light)), [The Matrix](https://codemirror.net/5/demo/theme.html#the-matrix). |
| 1883 |
* Improved interaction between themes and [active-line](https://codemirror.net/5/doc/manual.html#addon_active-line)/[matchbrackets](https://codemirror.net/5/doc/manual.html#addon_matchbrackets) addons. |
| 1884 |
* New [folding](https://codemirror.net/5/doc/manual.html#addon_foldcode) function `CodeMirror.fold.comment`. |
| 1885 |
* Added [fullscreen](https://codemirror.net/5/doc/manual.html#addon_fullscreen) addon. |
| 1886 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.15.0...3.16.0). |
| 1887 |
|
| 1888 |
## 3.15.0 (2013-07-29) |
| 1889 |
|
| 1890 |
* New modes: [Jade](https://codemirror.net/5/mode/jade/index.html), [Nginx](https://codemirror.net/5/mode/nginx/index.html). |
| 1891 |
* New addons: [Tern](https://codemirror.net/5/demo/tern.html), [matchtags](https://codemirror.net/5/doc/manual.html#addon_matchtags), and [foldgutter](https://codemirror.net/5/doc/manual.html#addon_foldgutter). |
| 1892 |
* Introduced [_helper_](https://codemirror.net/5/doc/manual.html#getHelper) concept ([context](https://groups.google.com/forum/#!msg/codemirror/cOc0xvUUEUU/nLrX1-qnidgJ)). |
| 1893 |
* New method: [`getModeAt`](https://codemirror.net/5/doc/manual.html#getModeAt). |
| 1894 |
* New themes: base16 [dark](https://codemirror.net/5/demo/theme.html#base16-dark)/[light](https://codemirror.net/5/demo/theme.html#base16-light), 3024 [dark](https://codemirror.net/5/demo/theme.html#3024-night)/[light](https://codemirror.net/5/demo/theme.html#3024-day), [tomorrow-night](https://codemirror.net/5/demo/theme.html#tomorrow-night-eighties). |
| 1895 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.14.0...3.15.0). |
| 1896 |
|
| 1897 |
## 3.14.0 (2013-06-20) |
| 1898 |
|
| 1899 |
* New addons: [trailing space highlight](https://codemirror.net/5/doc/manual.html#addon_trailingspace), [XML completion](https://codemirror.net/5/doc/manual.html#addon_xml-hint) (rewritten), and [diff merging](https://codemirror.net/5/doc/manual.html#addon_merge). |
| 1900 |
* [`markText`](https://codemirror.net/5/doc/manual.html#markText) and [`addLineWidget`](https://codemirror.net/5/doc/manual.html#addLineWidget) now take a `handleMouseEvents` option. |
| 1901 |
* New methods: [`lineAtHeight`](https://codemirror.net/5/doc/manual.html#lineAtHeight), [`getTokenTypeAt`](https://codemirror.net/5/doc/manual.html#getTokenTypeAt). |
| 1902 |
* More precise cleanness-tracking using [`changeGeneration`](https://codemirror.net/5/doc/manual.html#changeGeneration) and [`isClean`](https://codemirror.net/5/doc/manual.html#isClean). |
| 1903 |
* Many extensions to [Emacs](https://codemirror.net/5/demo/emacs.html) mode (prefixes, more navigation units, and more). |
| 1904 |
* New events [`"keyHandled"`](https://codemirror.net/5/doc/manual.html#event_keyHandled) and [`"inputRead"`](https://codemirror.net/5/doc/manual.html#event_inputRead). |
| 1905 |
* Various improvements to [Ruby](https://codemirror.net/5/mode/ruby/index.html), [Smarty](https://codemirror.net/5/mode/smarty/index.html), [SQL](https://codemirror.net/5/mode/sql/index.html), and [Vim](https://codemirror.net/5/demo/vim.html) modes. |
| 1906 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.13.0...3.14.0). |
| 1907 |
|
| 1908 |
## 3.13.0 (2013-05-20) |
| 1909 |
|
| 1910 |
* New modes: [COBOL](https://codemirror.net/5/mode/cobol/index.html) and [HAML](https://codemirror.net/5/mode/haml/index.html). |
| 1911 |
* New options: [`cursorScrollMargin`](https://codemirror.net/5/doc/manual.html#option_cursorScrollMargin) and [`coverGutterNextToScrollbar`](https://codemirror.net/5/doc/manual.html#option_coverGutterNextToScrollbar). |
| 1912 |
* New addon: [commenting](https://codemirror.net/5/doc/manual.html#addon_comment). |
| 1913 |
* More features added to the [Vim keymap](https://codemirror.net/5/demo/vim.html). |
| 1914 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.12...3.13.0). |
| 1915 |
|
| 1916 |
## 3.12.0 (2013-04-19) |
| 1917 |
|
| 1918 |
* New mode: [GNU assembler](https://codemirror.net/5/mode/gas/index.html). |
| 1919 |
* New options: [`maxHighlightLength`](https://codemirror.net/5/doc/manual.html#option_maxHighlightLength) and [`historyEventDelay`](https://codemirror.net/5/doc/manual.html#option_historyEventDelay). |
| 1920 |
* Added [`addToHistory`](https://codemirror.net/5/doc/manual.html#mark_addToHistory) option for `markText`. |
| 1921 |
* Various fixes to JavaScript tokenization and indentation corner cases. |
| 1922 |
* Further improvements to the vim mode. |
| 1923 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.11...v3.12). |
| 1924 |
|
| 1925 |
## 3.11.0 (2013-03-20) |
| 1926 |
|
| 1927 |
* **Removed code:** `collapserange`, `formatting`, and `simple-hint` addons. `plsql` and `mysql` modes (use [`sql`](https://codemirror.net/5/mode/sql/index.html) mode). |
| 1928 |
* **Moved code:** the range-finding functions for folding now have [their own files](https://codemirror.net/5/addon/fold/). |
| 1929 |
* **Changed interface:** the [`continuecomment`](https://codemirror.net/5/doc/manual.html#addon_continuecomment) addon now exposes an option, rather than a command. |
| 1930 |
* New modes: [SCSS](https://codemirror.net/5/mode/css/scss.html), [Tcl](https://codemirror.net/5/mode/tcl/index.html), [LiveScript](https://codemirror.net/5/mode/livescript/index.html), and [mIRC](https://codemirror.net/5/mode/mirc/index.html). |
| 1931 |
* New addons: [`placeholder`](https://codemirror.net/5/demo/placeholder.html), [HTML completion](https://codemirror.net/5/demo/html5complete.html). |
| 1932 |
* New methods: [`hasFocus`](https://codemirror.net/5/doc/manual.html#hasFocus), [`defaultCharWidth`](https://codemirror.net/5/doc/manual.html#defaultCharWidth). |
| 1933 |
* New events: [`beforeCursorEnter`](https://codemirror.net/5/doc/manual.html#event_beforeCursorEnter), [`renderLine`](https://codemirror.net/5/doc/manual.html#event_renderLine). |
| 1934 |
* Many improvements to the [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint) completion dialog addon. |
| 1935 |
* Tweak behavior of by-word cursor motion. |
| 1936 |
* Further improvements to the [vim mode](https://codemirror.net/5/demo/vim.html). |
| 1937 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.1...v3.11). |
| 1938 |
|
| 1939 |
## 3.02.0 (2013-01-25) |
| 1940 |
|
| 1941 |
Single-bugfix release. Fixes a problem that prevents CodeMirror instances from being garbage-collected after they become unused. |
| 1942 |
|
| 1943 |
## 3.01.0 (2013-01-21) |
| 1944 |
|
| 1945 |
* Move all add-ons into an organized directory structure under [`/addon`](https://codemirror.net/5/addon/). **You might have to adjust your paths.** |
| 1946 |
* New modes: [D](https://codemirror.net/5/mode/d/index.html), [Sass](https://codemirror.net/5/mode/sass/index.html), [APL](https://codemirror.net/5/mode/apl/index.html), [SQL](https://codemirror.net/5/mode/sql/index.html) (configurable), and [Asterisk](https://codemirror.net/5/mode/asterisk/index.html). |
| 1947 |
* Several bugfixes in right-to-left text support. |
| 1948 |
* Add [`rtlMoveVisually`](https://codemirror.net/5/doc/manual.html#option_rtlMoveVisually) option. |
| 1949 |
* Improvements to vim keymap. |
| 1950 |
* Add built-in (lightweight) [overlay mode](https://codemirror.net/5/doc/manual.html#addOverlay) support. |
| 1951 |
* Support `showIfHidden` option for [line widgets](https://codemirror.net/5/doc/manual.html#addLineWidget). |
| 1952 |
* Add simple [Python hinter](https://codemirror.net/5/doc/manual.html#addon_python-hint). |
| 1953 |
* Bring back the [`fixedGutter`](https://codemirror.net/5/doc/manual.html#option_fixedGutter) option. |
| 1954 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0...v3.01). |
| 1955 |
|
| 1956 |
## 3.1.0 (2013-02-21) |
| 1957 |
|
| 1958 |
* **Incompatible:** key handlers may now _return_, rather than _throw_ `CodeMirror.Pass` to signal they didn't handle the key. |
| 1959 |
* Make documents a [first-class construct](https://codemirror.net/5/doc/manual.html#api_doc), support split views and subviews. |
| 1960 |
* Add a [new module](https://codemirror.net/5/doc/manual.html#addon_show-hint) for showing completion hints. Deprecate `simple-hint.js`. |
| 1961 |
* Extend [htmlmixed mode](https://codemirror.net/5/mode/htmlmixed/index.html) to allow custom handling of script types. |
| 1962 |
* Support an `insertLeft` option to [`setBookmark`](https://codemirror.net/5/doc/manual.html#setBookmark). |
| 1963 |
* Add an [`eachLine`](https://codemirror.net/5/doc/manual.html#eachLine) method to iterate over a document. |
| 1964 |
* New addon modules: [selection marking](https://codemirror.net/5/demo/markselection.html), [linting](https://codemirror.net/5/demo/lint.html), and [automatic bracket closing](https://codemirror.net/5/demo/closebrackets.html). |
| 1965 |
* Add [`"beforeChange"`](https://codemirror.net/5/doc/manual.html#event_beforeChange) and [`"beforeSelectionChange"`](https://codemirror.net/5/doc/manual.html#event_beforeSelectionChange) events. |
| 1966 |
* Add [`"hide"`](https://codemirror.net/5/doc/manual.html#event_hide) and [`"unhide"`](https://codemirror.net/5/doc/manual.html#event_unhide) events to marked ranges. |
| 1967 |
* Fix [`coordsChar`](https://codemirror.net/5/doc/manual.html#coordsChar)'s interpretation of its argument to match the documentation. |
| 1968 |
* New modes: [Turtle](https://codemirror.net/5/mode/turtle/index.html) and [Q](https://codemirror.net/5/mode/q/index.html). |
| 1969 |
* Further improvements to the [vim mode](https://codemirror.net/5/demo/vim.html). |
| 1970 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.01...v3.1). |
| 1971 |
|
| 1972 |
## 3.0.0 (2012-12-10) |
| 1973 |
|
| 1974 |
**New major version**. Only partially backwards-compatible. See the [upgrading guide](https://codemirror.net/5/doc/upgrade_v3.html) for more information. Changes since release candidate 2: |
| 1975 |
|
| 1976 |
* Rewritten VIM mode. |
| 1977 |
* Fix a few minor scrolling and sizing issues. |
| 1978 |
* Work around Safari segfault when dragging. |
| 1979 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0rc2...v3.0). |
| 1980 |
|
| 1981 |
## 2.38.0 (2013-01-21) |
| 1982 |
|
| 1983 |
Integrate some bugfixes, enhancements to the vim keymap, and new modes ([D](https://codemirror.net/5/mode/d/index.html), [Sass](https://codemirror.net/5/mode/sass/index.html), [APL](https://codemirror.net/5/mode/apl/index.html)) from the v3 branch. |
| 1984 |
|
| 1985 |
## 2.37.0 (2012-12-20) |
| 1986 |
|
| 1987 |
* New mode: [SQL](https://codemirror.net/5/mode/sql/index.html) (will replace [plsql](https://codemirror.net/5/mode/plsql/index.html) and [mysql](https://codemirror.net/5/mode/mysql/index.html) modes). |
| 1988 |
* Further work on the new VIM mode. |
| 1989 |
* Fix Cmd/Ctrl keys on recent Operas on OS X. |
| 1990 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.36...v2.37). |
| 1991 |
|
| 1992 |
## 2.36.0 (2012-11-20) |
| 1993 |
|
| 1994 |
* New mode: [Z80 assembly](https://codemirror.net/5/mode/z80/index.html). |
| 1995 |
* New theme: [Twilight](https://codemirror.net/5/demo/theme.html#twilight). |
| 1996 |
* Add command-line compression helper. |
| 1997 |
* Make [`scrollIntoView`](https://codemirror.net/5/doc/manual.html#scrollIntoView) public. |
| 1998 |
* Add [`defaultTextHeight`](https://codemirror.net/5/doc/manual.html#defaultTextHeight) method. |
| 1999 |
* Various extensions to the vim keymap. |
| 2000 |
* Make [PHP mode](https://codemirror.net/5/mode/php/index.html) build on [mixed HTML mode](https://codemirror.net/5/mode/htmlmixed/index.html). |
| 2001 |
* Add [comment-continuing](https://codemirror.net/5/doc/manual.html#addon_continuecomment) add-on. |
| 2002 |
* Full [list of patches](https://codemirror.net/5/https://github.com/codemirror/CodeMirror/compare/v2.35...v2.36). |
| 2003 |
|
| 2004 |
## 2.35.0 (2012-10-22) |
| 2005 |
|
| 2006 |
* New (sub) mode: [TypeScript](https://codemirror.net/5/mode/javascript/typescript.html). |
| 2007 |
* Don't overwrite (insert key) when pasting. |
| 2008 |
* Fix several bugs in [`markText`](https://codemirror.net/5/doc/manual.html#markText)/undo interaction. |
| 2009 |
* Better indentation of JavaScript code without semicolons. |
| 2010 |
* Add [`defineInitHook`](https://codemirror.net/5/doc/manual.html#defineInitHook) function. |
| 2011 |
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.34...v2.35). |
| 2012 |
|
| 2013 |
## 2.34.0 (2012-09-19) |
| 2014 |
|
| 2015 |
* New mode: [Common Lisp](https://codemirror.net/5/mode/commonlisp/index.html). |
| 2016 |
* Fix right-click select-all on most browsers. |
| 2017 |
* Change the way highlighting happens: |
| 2018 |
Saves memory and CPU cycles. |
| 2019 |
`compareStates` is no longer needed. |
| 2020 |
`onHighlightComplete` no longer works. |
| 2021 |
* Integrate mode (Markdown, XQuery, CSS, sTex) tests in central testsuite. |
| 2022 |
* Add a [`CodeMirror.version`](https://codemirror.net/5/doc/manual.html#version) property. |
| 2023 |
* More robust handling of nested modes in [formatting](https://codemirror.net/5/demo/formatting.html) and [closetag](https://codemirror.net/5/demo/closetag.html) plug-ins. |
| 2024 |
* Un/redo now preserves [marked text](https://codemirror.net/5/doc/manual.html#markText) and bookmarks. |
| 2025 |
* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.33...v2.34) of patches. |
| 2026 |
|
| 2027 |
## 2.33.0 (2012-08-23) |
| 2028 |
|
| 2029 |
* New mode: [Sieve](https://codemirror.net/5/mode/sieve/index.html). |
| 2030 |
* New [`getViewPort`](https://codemirror.net/5/doc/manual.html#getViewport) and [`onViewportChange`](https://codemirror.net/5/doc/manual.html#option_onViewportChange) API. |
| 2031 |
* [Configurable](https://codemirror.net/5/doc/manual.html#option_cursorBlinkRate) cursor blink rate. |
| 2032 |
* Make binding a key to `false` disabling handling (again). |
| 2033 |
* Show non-printing characters as red dots. |
| 2034 |
* More tweaks to the scrolling model. |
| 2035 |
* Expanded testsuite. Basic linter added. |
| 2036 |
* Remove most uses of `innerHTML`. Remove `CodeMirror.htmlEscape`. |
| 2037 |
* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.32...v2.33) of patches. |
| 2038 |
|
| 2039 |
## 2.32.0 (2012-07-23) |
| 2040 |
|
| 2041 |
Emergency fix for a bug where an editor with line wrapping on IE will break when there is _no_ scrollbar. |
| 2042 |
|
| 2043 |
## 2.31.0 (2012-07-20) |
| 2044 |
|
| 2045 |
* New modes: [OCaml](https://codemirror.net/5/mode/ocaml/index.html), [Haxe](https://codemirror.net/5/mode/haxe/index.html), and [VB.NET](https://codemirror.net/5/mode/vb/index.html). |
| 2046 |
* Several fixes to the new scrolling model. |
| 2047 |
* Add a [`setSize`](https://codemirror.net/5/doc/manual.html#setSize) method for programmatic resizing. |
| 2048 |
* Add [`getHistory`](https://codemirror.net/5/doc/manual.html#getHistory) and [`setHistory`](https://codemirror.net/5/doc/manual.html#setHistory) methods. |
| 2049 |
* Allow custom line separator string in [`getValue`](https://codemirror.net/5/doc/manual.html#getValue) and [`getRange`](https://codemirror.net/5/doc/manual.html#getRange). |
| 2050 |
* Support double- and triple-click drag, double-clicking whitespace. |
| 2051 |
* And more... [(all patches)](https://github.com/codemirror/CodeMirror/compare/v2.3...v2.31) |
| 2052 |
|
| 2053 |
## 2.30.0 (2012-06-22) |
| 2054 |
|
| 2055 |
* **New scrollbar implementation**. Should flicker less. Changes DOM structure of the editor. |
| 2056 |
* New theme: [vibrant-ink](https://codemirror.net/5/demo/theme.html#vibrant-ink). |
| 2057 |
* Many extensions to the VIM keymap (including text objects). |
| 2058 |
* Add [mode-multiplexing](https://codemirror.net/5/demo/multiplex.html) utility script. |
| 2059 |
* Fix bug where right-click paste works in read-only mode. |
| 2060 |
* Add a [`getScrollInfo`](https://codemirror.net/5/doc/manual.html#getScrollInfo) method. |
| 2061 |
* Lots of other [fixes](https://github.com/codemirror/CodeMirror/compare/v2.25...v2.3). |
| 2062 |
|
| 2063 |
## 2.25.0 (2012-05-23) |
| 2064 |
|
| 2065 |
* New mode: [Erlang](https://codemirror.net/5/mode/erlang/index.html). |
| 2066 |
* **Remove xmlpure mode** (use [xml.js](https://codemirror.net/5/mode/xml/index.html)). |
| 2067 |
* Fix line-wrapping in Opera. |
| 2068 |
* Fix X Windows middle-click paste in Chrome. |
| 2069 |
* Fix bug that broke pasting of huge documents. |
| 2070 |
* Fix backspace and tab key repeat in Opera. |
| 2071 |
|
| 2072 |
## 2.24.0 (2012-04-23) |
| 2073 |
|
| 2074 |
* **Drop support for Internet Explorer 6**. |
| 2075 |
* New modes: [Shell](https://codemirror.net/5/mode/shell/index.html), [Tiki wiki](https://codemirror.net/5/mode/tiki/index.html), [Pig Latin](https://codemirror.net/5/mode/pig/index.html). |
| 2076 |
* New themes: [Ambiance](https://codemirror.net/5/demo/theme.html#ambiance), [Blackboard](https://codemirror.net/5/demo/theme.html#blackboard). |
| 2077 |
* More control over drag/drop with [`dragDrop`](https://codemirror.net/5/doc/manual.html#option_dragDrop) and [`onDragEvent`](https://codemirror.net/5/doc/manual.html#option_onDragEvent) options. |
| 2078 |
* Make HTML mode a bit less pedantic. |
| 2079 |
* Add [`compoundChange`](https://codemirror.net/5/doc/manual.html#compoundChange) API method. |
| 2080 |
* Several fixes in undo history and line hiding. |
| 2081 |
* Remove (broken) support for `catchall` in key maps, add `nofallthrough` boolean field instead. |
| 2082 |
|
| 2083 |
## 2.23.0 (2012-03-26) |
| 2084 |
|
| 2085 |
* Change **default binding for tab**. Starting in 2.23, these bindings are default: |
| 2086 |
* Tab: Insert tab character |
| 2087 |
* Shift-tab: Reset line indentation to default |
| 2088 |
* Ctrl/Cmd-[: Reduce line indentation (old tab behaviour) |
| 2089 |
* Ctrl/Cmd-]: Increase line indentation (old shift-tab behaviour) |
| 2090 |
* New modes: [XQuery](https://codemirror.net/5/mode/xquery/index.html) and [VBScript](https://codemirror.net/5/mode/vbscript/index.html). |
| 2091 |
* Two new themes: [lesser-dark](https://codemirror.net/5/mode/less/index.html) and [xq-dark](https://codemirror.net/5/mode/xquery/index.html). |
| 2092 |
* Differentiate between background and text styles in [`setLineClass`](https://codemirror.net/5/doc/manual.html#setLineClass). |
| 2093 |
* Fix drag-and-drop in IE9+. |
| 2094 |
* Extend [`charCoords`](https://codemirror.net/5/doc/manual.html#charCoords) and [`cursorCoords`](https://codemirror.net/5/doc/manual.html#cursorCoords) with a `mode` argument. |
| 2095 |
* Add [`autofocus`](https://codemirror.net/5/doc/manual.html#option_autofocus) option. |
| 2096 |
* Add [`findMarksAt`](https://codemirror.net/5/doc/manual.html#findMarksAt) method. |
| 2097 |
|
| 2098 |
## 2.22.0 (2012-02-27) |
| 2099 |
|
| 2100 |
* Allow [key handlers](https://codemirror.net/5/doc/manual.html#keymaps) to pass up events, allow binding characters. |
| 2101 |
* Add [`autoClearEmptyLines`](https://codemirror.net/5/doc/manual.html#option_autoClearEmptyLines) option. |
| 2102 |
* Properly use tab stops when rendering tabs. |
| 2103 |
* Make PHP mode more robust. |
| 2104 |
* Support indentation blocks in [code folder](https://codemirror.net/5/doc/manual.html#addon_foldcode). |
| 2105 |
* Add a script for [highlighting instances of the selection](https://codemirror.net/5/doc/manual.html#addon_match-highlighter). |
| 2106 |
* New [.properties](https://codemirror.net/5/mode/properties/index.html) mode. |
| 2107 |
* Fix many bugs. |
| 2108 |
|
| 2109 |
## 2.21.0 (2012-01-27) |
| 2110 |
|
| 2111 |
* Added [LESS](https://codemirror.net/5/mode/less/index.html), [MySQL](https://codemirror.net/5/mode/mysql/index.html), [Go](https://codemirror.net/5/mode/go/index.html), and [Verilog](https://codemirror.net/5/mode/verilog/index.html) modes. |
| 2112 |
* Add [`smartIndent`](https://codemirror.net/5/doc/manual.html#option_smartIndent) option. |
| 2113 |
* Support a cursor in [`readOnly`](https://codemirror.net/5/doc/manual.html#option_readOnly)-mode. |
| 2114 |
* Support assigning multiple styles to a token. |
| 2115 |
* Use a new approach to drawing the selection. |
| 2116 |
* Add [`scrollTo`](https://codemirror.net/5/doc/manual.html#scrollTo) method. |
| 2117 |
* Allow undo/redo events to span non-adjacent lines. |
| 2118 |
* Lots and lots of bugfixes. |
| 2119 |
|
| 2120 |
## 2.20.0 (2011-12-20) |
| 2121 |
|
| 2122 |
* Slightly incompatible API changes. Read [this](https://codemirror.net/5/doc/upgrade_v2.2.html). |
| 2123 |
* New approach to [binding](https://codemirror.net/5/doc/manual.html#option_extraKeys) keys, support for [custom bindings](https://codemirror.net/5/doc/manual.html#option_keyMap). |
| 2124 |
* Support for overwrite (insert). |
| 2125 |
* [Custom-width](https://codemirror.net/5/doc/manual.html#option_tabSize) and [styleable](https://codemirror.net/5/demo/visibletabs.html) tabs. |
| 2126 |
* Moved more code into [add-on scripts](https://codemirror.net/5/doc/manual.html#addons). |
| 2127 |
* Support for sane vertical cursor movement in wrapped lines. |
| 2128 |
* More reliable handling of editing [marked text](https://codemirror.net/5/doc/manual.html#markText). |
| 2129 |
* Add minimal [emacs](https://codemirror.net/5/demo/emacs.html) and [vim](https://codemirror.net/5/demo/vim.html) bindings. |
| 2130 |
* Rename `coordsFromIndex` to [`posFromIndex`](https://codemirror.net/5/doc/manual.html#posFromIndex), add [`indexFromPos`](https://codemirror.net/5/doc/manual.html#indexFromPos) method. |
| 2131 |
|
| 2132 |
## 2.18.0 (2011-11-21) |
| 2133 |
|
| 2134 |
Fixes `TextMarker.clear`, which is broken in 2.17. |
| 2135 |
|
| 2136 |
## 2.17.0 (2011-11-21) |
| 2137 |
|
| 2138 |
* Add support for [line wrapping](https://codemirror.net/5/doc/manual.html#option_lineWrapping) and [code folding](https://codemirror.net/5/doc/manual.html#hideLine). |
| 2139 |
* Add [GitHub-style Markdown](https://codemirror.net/5/mode/gfm/index.html) mode. |
| 2140 |
* Add [Monokai](https://codemirror.net/5/theme/monokai.css) and [Rubyblue](https://codemirror.net/5/theme/rubyblue.css) themes. |
| 2141 |
* Add [`setBookmark`](https://codemirror.net/5/doc/manual.html#setBookmark) method. |
| 2142 |
* Move some of the demo code into reusable components under [`lib/util`](https://codemirror.net/5/addon/). |
| 2143 |
* Make screen-coord-finding code faster and more reliable. |
| 2144 |
* Fix drag-and-drop in Firefox. |
| 2145 |
* Improve support for IME. |
| 2146 |
* Speed up content rendering. |
| 2147 |
* Fix browser's built-in search in Webkit. |
| 2148 |
* Make double- and triple-click work in IE. |
| 2149 |
* Various fixes to modes. |
| 2150 |
|
| 2151 |
## 2.16.0 (2011-10-27) |
| 2152 |
|
| 2153 |
* Add [Perl](https://codemirror.net/5/mode/perl/index.html), [Rust](https://codemirror.net/5/mode/rust/index.html), [TiddlyWiki](https://codemirror.net/5/mode/tiddlywiki/index.html), and [Groovy](https://codemirror.net/5/mode/groovy/index.html) modes. |
| 2154 |
* Dragging text inside the editor now moves, rather than copies. |
| 2155 |
* Add a [`coordsFromIndex`](https://codemirror.net/5/doc/manual.html#coordsFromIndex) method. |
| 2156 |
* **API change**: `setValue` now no longer clears history. Use [`clearHistory`](https://codemirror.net/5/doc/manual.html#clearHistory) for that. |
| 2157 |
* **API change**: [`markText`](https://codemirror.net/5/doc/manual.html#markText) now returns an object with `clear` and `find` methods. Marked text is now more robust when edited. |
| 2158 |
* Fix editing code with tabs in Internet Explorer. |
| 2159 |
|
| 2160 |
## 2.15.0 (2011-09-26) |
| 2161 |
|
| 2162 |
Fix bug that snuck into 2.14: Clicking the character that currently has the cursor didn't re-focus the editor. |
| 2163 |
|
| 2164 |
## 2.14.0 (2011-09-26) |
| 2165 |
|
| 2166 |
* Add [Clojure](https://codemirror.net/5/mode/clojure/index.html), [Pascal](https://codemirror.net/5/mode/pascal/index.html), [NTriples](https://codemirror.net/5/mode/ntriples/index.html), [Jinja2](https://codemirror.net/5/mode/jinja2/index.html), and [Markdown](https://codemirror.net/5/mode/markdown/index.html) modes. |
| 2167 |
* Add [Cobalt](https://codemirror.net/5/theme/cobalt.css) and [Eclipse](https://codemirror.net/5/theme/eclipse.css) themes. |
| 2168 |
* Add a [`fixedGutter`](https://codemirror.net/5/doc/manual.html#option_fixedGutter) option. |
| 2169 |
* Fix bug with `setValue` breaking cursor movement. |
| 2170 |
* Make gutter updates much more efficient. |
| 2171 |
* Allow dragging of text out of the editor (on modern browsers). |
| 2172 |
|
| 2173 |
## 2.13.0 (2011-08-23) |
| 2174 |
|
| 2175 |
* Add [Ruby](https://codemirror.net/5/mode/ruby/index.html), [R](https://codemirror.net/5/mode/r/index.html), [CoffeeScript](https://codemirror.net/5/mode/coffeescript/index.html), and [Velocity](https://codemirror.net/5/mode/velocity/index.html) modes. |
| 2176 |
* Add [`getGutterElement`](https://codemirror.net/5/doc/manual.html#getGutterElement) to API. |
| 2177 |
* Several fixes to scrolling and positioning. |
| 2178 |
* Add [`smartHome`](https://codemirror.net/5/doc/manual.html#option_smartHome) option. |
| 2179 |
* Add an experimental [pure XML](https://codemirror.net/5/mode/xmlpure/index.html) mode. |
| 2180 |
|
| 2181 |
## 2.12.0 (2011-07-25) |
| 2182 |
|
| 2183 |
* Add a [SPARQL](https://codemirror.net/5/mode/sparql/index.html) mode. |
| 2184 |
* Fix bug with cursor jumping around in an unfocused editor in IE. |
| 2185 |
* Allow key and mouse events to bubble out of the editor. Ignore widget clicks. |
| 2186 |
* Solve cursor flakiness after undo/redo. |
| 2187 |
* Fix block-reindent ignoring the last few lines. |
| 2188 |
* Fix parsing of multi-line attrs in XML mode. |
| 2189 |
* Use `innerHTML` for HTML-escaping. |
| 2190 |
* Some fixes to indentation in C-like mode. |
| 2191 |
* Shrink horiz scrollbars when long lines removed. |
| 2192 |
* Fix width feedback loop bug that caused the width of an inner DIV to shrink. |
| 2193 |
|
| 2194 |
## 2.11.0 (2011-07-04) |
| 2195 |
|
| 2196 |
* Add a [Scheme mode](https://codemirror.net/5/mode/scheme/index.html). |
| 2197 |
* Add a `replace` method to search cursors, for cursor-preserving replacements. |
| 2198 |
* Make the [C-like mode](https://codemirror.net/5/mode/clike/index.html) mode more customizable. |
| 2199 |
* Update XML mode to spot mismatched tags. |
| 2200 |
* Add `getStateAfter` API and `compareState` mode API methods for finer-grained mode magic. |
| 2201 |
* Add a `getScrollerElement` API method to manipulate the scrolling DIV. |
| 2202 |
* Fix drag-and-drop for Firefox. |
| 2203 |
* Add a C# configuration for the [C-like mode](https://codemirror.net/5/mode/clike/index.html). |
| 2204 |
* Add [full-screen editing](https://codemirror.net/5/demo/fullscreen.html) and [mode-changing](https://codemirror.net/5/demo/changemode.html) demos. |
| 2205 |
|
| 2206 |
## 2.10.0 (2011-06-07) |
| 2207 |
|
| 2208 |
Add a [theme](https://codemirror.net/5/doc/manual.html#option_theme) system ([demo](https://codemirror.net/5/demo/theme.html)). Note that this is not backwards-compatible—you'll have to update your styles and modes! |
| 2209 |
|
| 2210 |
## 2.2.0 (2011-06-07) |
| 2211 |
|
| 2212 |
* Add a [Lua mode](https://codemirror.net/5/mode/lua/index.html). |
| 2213 |
* Fix reverse-searching for a regexp. |
| 2214 |
* Empty lines can no longer break highlighting. |
| 2215 |
* Rework scrolling model (the outer wrapper no longer does the scrolling). |
| 2216 |
* Solve horizontal jittering on long lines. |
| 2217 |
* Add [runmode.js](https://codemirror.net/5/demo/runmode.html). |
| 2218 |
* Immediately re-highlight text when typing. |
| 2219 |
* Fix problem with 'sticking' horizontal scrollbar. |
| 2220 |
|
| 2221 |
## 2.1.0 (2011-05-26) |
| 2222 |
|
| 2223 |
* Add a [Smalltalk mode](https://codemirror.net/5/mode/smalltalk/index.html). |
| 2224 |
* Add a [reStructuredText mode](https://codemirror.net/5/mode/rst/index.html). |
| 2225 |
* Add a [Python mode](https://codemirror.net/5/mode/python/index.html). |
| 2226 |
* Add a [PL/SQL mode](https://codemirror.net/5/mode/plsql/index.html). |
| 2227 |
* `coordsChar` now works |
| 2228 |
* Fix a problem where `onCursorActivity` interfered with `onChange`. |
| 2229 |
* Fix a number of scrolling and mouse-click-position glitches. |
| 2230 |
* Pass information about the changed lines to `onChange`. |
| 2231 |
* Support cmd-up/down on OS X. |
| 2232 |
* Add triple-click line selection. |
| 2233 |
* Don't handle shift when changing the selection through the API. |
| 2234 |
* Support `"nocursor"` mode for `readOnly` option. |
| 2235 |
* Add an `onHighlightComplete` option. |
| 2236 |
* Fix the context menu for Firefox. |
| 2237 |
|
| 2238 |
## 2.0.0 (2011-03-28) |
| 2239 |
|
| 2240 |
CodeMirror 2 is a complete rewrite that's faster, smaller, simpler to use, and less dependent on browser quirks. See [this](https://codemirror.net/5/doc/internals.html) and [this](http://groups.google.com/group/codemirror/browse_thread/thread/5a8e894024a9f580) for more information. |