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