You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2250 lines
113 KiB

8 months ago
  1. ## 5.65.16 (2023-11-20)
  2. ### Bug fixes
  3. Fix focus tracking in shadow DOM.
  4. [go mode](https://codemirror.net/5/mode/go/): Allow underscores in numbers.
  5. [jsx mode](https://codemirror.net/5/mode/jsx/index.html): Support TS generics marked by trailing comma.
  6. ## 5.65.15 (2023-08-29)
  7. ### Bug fixes
  8. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Prevent tooltips from sticking out of the viewport.
  9. [yaml mode](https://codemirror.net/5/mode/yaml/): Fix an exponential-complexity regular expression.
  10. ## 5.65.14 (2023-07-17)
  11. ### Bug fixes
  12. [clike mode](https://codemirror.net/5/mode/clike/): Fix poor indentation in some Java code.
  13. [nsis mode](https://codemirror.net/5/mode/nsis/index.html): Recognize `!assert` command.
  14. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Remove broken annotation deduplication.
  15. ## 5.65.13 (2023-04-27)
  16. ### Bug fixes
  17. [dart mode](https://codemirror.net/5/mode/dart/index.html): Add some new keywords.
  18. [clike mode](https://codemirror.net/5/mode/clike/): Tokenize Scala character literals.
  19. ## 5.65.12 (2023-02-20)
  20. ### Bug fixes
  21. [python mode](https://codemirror.net/5/mode/python/): Add new built-ins and keywords.
  22. ## 5.65.11 (2022-12-20)
  23. ### Bug fixes
  24. Also respect autocapitalize/autocorrect/spellcheck options in textarea mode.
  25. [sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Fix keyword completion in generic SQL mode.
  26. ## 5.65.10 (2022-11-20)
  27. ### Bug fixes
  28. [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.
  29. [javascript mode](https://codemirror.net/5/mode/javascript/index.html): Fix parsing of property keywords before private property names.
  30. ## 5.65.9 (2022-09-20)
  31. ### Bug fixes
  32. Add a workaround for a regression in Chrome 105 that could cause content below the editor to not receive mouse events.
  33. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Resize the tooltip if it doesn't fit the screen.
  34. [swift mode](https://codemirror.net/5/mode/swift): Fix tokenizing of block comments.
  35. [jinja2 mode](https://codemirror.net/5/mode/jinja2/): Support line statements.
  36. ## 5.65.8 (2022-08-20)
  37. ### Bug fixes
  38. Include direction override and isolate characters in the default set of special characters.
  39. Fix an issue that could cause document corruption when mouse-selecting during composition.
  40. [foldgutter addon](https://codemirror.net/5/doc/manual.html#addon_foldgutter): Refresh markers when the editor's mode changes.
  41. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Fix syntax that prevented the addon from loading in IE10.
  42. ## 5.65.7 (2022-07-20)
  43. ### Bug fixes
  44. Fix several references to the global `document`/`window`, improving support for creating an editor in another frame.
  45. [vim bindings](https://codemirror.net/5/demo/vim.html): Use [upstream](https://github.com/replit/codemirror-vim/) code instead of keeping our own copy.
  46. [tern addon](https://codemirror.net/5/demo/tern.html): Properly HTML escape variable names in rename dialog.
  47. ## 5.65.6 (2022-06-20)
  48. ### Bug fixes
  49. Avoid firing `beforeCursorEnter` callbacks twice for cursor selections.
  50. Improve support for auto-hiding macOS scrollbars.
  51. [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.
  52. [swift mode](https://codemirror.net/5/mode/swift): Support structured concurrency keywords.
  53. ## 5.65.5 (2022-05-30)
  54. ### Bug fixes
  55. Work around a bug in Chrome 102 that caused wheel scrolling of the editor to constantly stop.
  56. [search addon](https://codemirror.net/5/demo/search.html): Make sure the search field has an accessible label.
  57. [comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Preserve indentation on otherwise empty lines when indenting.
  58. ## 5.65.4 (2022-05-20)
  59. ### Bug fixes
  60. Ignore paste events when the editor doesn't have focus.
  61. [sparql mode](https://codemirror.net/5/mode/sparql/index.html): Fix parsing of variables after operators.
  62. [julia mode](https://codemirror.net/5/mode/julia/): Properly tokenize `!==` and `===` operators.
  63. ## 5.65.3 (2022-04-20)
  64. ### Bug fixes
  65. Fix a crash that could occur when when marking text.
  66. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Add aria label to buttons.
  67. [groovy mode](https://codemirror.net/5/mode/groovy/index.html): Properly highlight interpolated variables.
  68. ## 5.65.2 (2022-02-21)
  69. ### Bug fixes
  70. [clike mode](https://codemirror.net/5/mode/clike/): Recognize triple quoted string in Java.
  71. [cypher mode](https://codemirror.net/5/mode/cypher/index.html): Fix handling of punctuation.
  72. ## 5.65.1 (2022-01-20)
  73. ### Bug fixes
  74. Fix miscalculation of vertical positions in lines that have both line widgets and replaced newlines.
  75. ## 5.65.0 (2021-12-20)
  76. ### Bug fixes
  77. brace-folding addon: Fix broken folding on lines with both braces and square brackets.
  78. ### New features
  79. [vim bindings](https://codemirror.net/5/demo/vim.html): Support g0, g$, g<Arrow>.
  80. ## 5.64.0 (2021-11-20)
  81. ### Bug fixes
  82. Fix a crash that occurred in some situations with replacing marks across line breaks.
  83. Make sure native scrollbars reset their position when hidden and re-shown.
  84. ### New features
  85. [vim bindings](https://codemirror.net/5/demo/vim.html): Support C-u to delete back a line.
  86. ## 5.63.3 (2021-10-11)
  87. ### Bug fixes
  88. Prevent external styles from giving the hidden textarea a min-height.
  89. Remove a stray autosave file that was part of the previous release.
  90. ## 5.63.1 (2021-09-29)
  91. ### Bug fixes
  92. Fix an issue with mouse scrolling on Chrome 94 Windows, which made scrolling by wheel move unusably slow.
  93. ## 5.63.0 (2021-09-20)
  94. ### Bug fixes
  95. Fix scroll position jumping when scrolling a document with very different line heights.
  96. [xml mode](https://codemirror.net/5/mode/xml/): Look up HTML element behavior in a case-insensitive way.
  97. ### New features
  98. [vim bindings](https://codemirror.net/5/demo/vim.html): Support guu for case-changing.
  99. ## 5.62.3 (2021-08-20)
  100. ### Bug fixes
  101. Give the editor a `translate=no` attribute to prevent automatic translation from modifying its content.
  102. Give vim-style cursors a width that matches the character after them.
  103. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Make buttons keyboard-accessible.
  104. [emacs bindings](https://codemirror.net/5/demo/emacs.html): Fix by-page scrolling keybindings, which were accidentally inverted.
  105. ## 5.62.2 (2021-07-21)
  106. ### Bug fixes
  107. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Fix a regression that broke several addon options.
  108. ## 5.62.1 (2021-07-20)
  109. ### Bug fixes
  110. [vim bindings](https://codemirror.net/5/demo/vim.html): Make matching of upper-case characters more Unicode-aware.
  111. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Prevent options passed to the addon itself from being given to the linter.
  112. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Improve screen reader support.
  113. [search addon](https://codemirror.net/5/demo/search.html): Avoid using `innerHTML`.
  114. ## 5.62.0 (2021-06-21)
  115. ### Bug fixes
  116. Improve support for vim-style cursors in a number of themes.
  117. ### New features
  118. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Add support for highlighting lines with errors or warnings.
  119. ## 5.61.1 (2021-05-20)
  120. ### Bug fixes
  121. Fix a bug where changing the editor's document could confuse text-direction management.
  122. Fix a bug in horizontally scrolling the cursor into view.
  123. Optimize adding lots of marks in a single transaction.
  124. [simple mode addon](https://codemirror.net/5/demo/simplemode.html): Support regexps with a unicode flag.
  125. [javascript mode](https://codemirror.net/5/mode/javascript/index.html): Add support for TypeScript template string types, improve integration with JSX mode.
  126. ## 5.61.0 (2021-04-20)
  127. ### Bug fixes
  128. Improve support for being in a shadow DOM in contenteditable mode.
  129. Prevent line number from being read by screen readers.
  130. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix a crash caused by a race condition.
  131. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve scope tracking.
  132. ### New features
  133. The library now emits an `"updateGutter"` event when the gutter width changes.
  134. [emacs bindings](https://codemirror.net/5/demo/emacs.html): Provide named commands for all bindings.
  135. ## 5.60.0 (2021-03-20)
  136. ### Bug fixes
  137. Fix autofocus feature in contenteditable mode.
  138. [simple mode addon](https://codemirror.net/5/demo/simplemode.html): Fix a null-dereference crash.
  139. [multiplex addon](https://codemirror.net/5/demo/multiplex.html): Make it possible to use `parseDelimiters` when both delimiters are the same.
  140. [julia mode](https://codemirror.net/5/mode/julia/): Fix a lockup bug.
  141. ### New features
  142. `setSelections` now allows ranges to omit the `head` property when it is equal to `anchor`.
  143. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Add support for reverse line sorting.
  144. ## 5.59.4 (2021-02-24)
  145. ### Bug fixes
  146. Give the scrollbar corner filler a background again, to prevent content from peeping through between the scrollbars.
  147. ## 5.59.3 (2021-02-20)
  148. ### Bug fixes
  149. Don't override the way zero-with non-joiners are rendered.
  150. Fix an issue where resetting the history cleared the `undoDepth` option's value.
  151. [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.
  152. ## 5.59.2 (2021-01-20)
  153. ### Bug fixes
  154. Don't try to scroll the selection into view in `readonly: "nocursor"` mode.
  155. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Fix a regression in the behavior of pressing enter between brackets.
  156. [javascript mode](https://codemirror.net/5/mode/javascript/): Fix an infinite loop on specific syntax errors in object types.
  157. various modes: Fix inefficient RegExp matching.
  158. ## 5.59.1 (2020-12-31)
  159. ### Bug fixes
  160. Fix an issue where some Chrome browsers were detected as iOS.
  161. ## 5.59.0 (2020-12-20)
  162. ### Bug fixes
  163. Fix platform detection on recent iPadOS.
  164. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Don't show duplicate messages for a given line.
  165. [clojure mode](https://codemirror.net/5/mode/clojure/index.html): Fix regexp that matched in exponential time for some inputs.
  166. [hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap): Improve handling of words that are longer than the line length.
  167. [matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Fix leaked event handler on disabling the addon.
  168. ### New features
  169. [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.
  170. ## 5.58.3 (2020-11-19)
  171. ### Bug fixes
  172. Suppress quick-firing of blur-focus events when dragging and clicking on Internet Explorer.
  173. Fix the `insertAt` option to `addLineWidget` to actually allow the widget to be placed after all widgets for the line.
  174. [soy mode](https://codemirror.net/5/mode/soy/): Support `@Attribute` and element composition.
  175. [shell mode](https://codemirror.net/5/mode/shell/): Support heredoc quoting.
  176. ## 5.58.2 (2020-10-23)
  177. ### Bug fixes
  178. Fix a bug where horizontally scrolling the cursor into view sometimes failed with a non-fixed gutter.
  179. [julia mode](https://codemirror.net/5/mode/julia/): Fix an infinite recursion bug.
  180. ## 5.58.1 (2020-09-23)
  181. ### Bug fixes
  182. [placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder): Remove arrow function that ended up in the code.
  183. ## 5.58.0 (2020-09-21)
  184. ### Bug fixes
  185. Make backspace delete by code point, not glyph.
  186. Suppress flickering focus outline when clicking on scrollbars in Chrome.
  187. Fix a bug that prevented attributes added via `markText` from showing up unless the span also had some other styling.
  188. Suppress cut and paste context menu entries in readonly editors in Chrome.
  189. [placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder): Update placeholder visibility during composition.
  190. ### New features
  191. Make it less cumbersome to style new lint message types.
  192. [vim bindings](https://codemirror.net/5/demo/vim.html): Support black hole register, `gn` and `gN`
  193. ## 5.57.0 (2020-08-20)
  194. ### Bug fixes
  195. Fix issue that broke binding the macOS Command key.
  196. [comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Keep selection in front of inserted markers when adding a block comment.
  197. [css mode](https://codemirror.net/5/mode/css/): Recognize more properties and value names.
  198. [annotatescrollbar addon](https://codemirror.net/5/doc/manual.html#addon_annotatescrollbar): Don't hide matches in collapsed content.
  199. ### New features
  200. [vim bindings](https://codemirror.net/5/demo/vim.html): Support tag text objects in xml and html modes.
  201. ## 5.56.0 (2020-07-20)
  202. ### Bug fixes
  203. Line-wise pasting was fixed on Chrome Windows.
  204. [wast mode](https://codemirror.net/5/mode/wast/): Follow standard changes.
  205. [soy mode](https://codemirror.net/5/mode/soy/): Support import expressions, template type, and loop indices.
  206. [sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Improve handling of double quotes.
  207. ### New features
  208. [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.
  209. [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.
  210. ## 5.55.0 (2020-06-21)
  211. ### Bug fixes
  212. The editor no longer overrides the rendering of zero-width joiners (allowing combined emoji to be shown).
  213. [vim bindings](https://codemirror.net/5/demo/vim.html): Fix an issue where the `vim-mode-change` event was fired twice.
  214. [javascript mode](https://codemirror.net/5/mode/javascript/): Only allow `-->`-style comments at the start of a line.
  215. [julia mode](https://codemirror.net/5/mode/julia/): Improve indentation.
  216. [pascal mode](https://codemirror.net/5/mode/pascal/index.html): Recognize curly bracket comments.
  217. [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.
  218. ### New features
  219. [loadmode addon](https://codemirror.net/5/doc/manual.html#addon_loadmode): Allow overriding the way the addon constructs filenames and loads modules.
  220. ## 5.54.0 (2020-05-20)
  221. ### Bug fixes
  222. Improve support for having focus inside in-editor widgets in contenteditable-mode.
  223. Fix issue where the scroll position could jump when clicking on a selection in Chrome.
  224. [python mode](https://codemirror.net/5/mode/python/): Better format string support.
  225. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing of private properties and class fields.
  226. [matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Disable highlighting when the editor doesn't have focus.
  227. ### New features
  228. [runmode addon](https://codemirror.net/5/doc/manual.html#addon_runmode): Properly support for cross-line lookahead.
  229. [vim bindings](https://codemirror.net/5/demo/vim.html): Allow Ex-Commands with non-word names.
  230. [gfm mode](https://codemirror.net/5/mode/gfm/): Add a `fencedCodeBlockDefaultMode` option.
  231. ## 5.53.2 (2020-04-21)
  232. ### Bug fixes
  233. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix a regression that broke completion picking.
  234. ## 5.53.0 (2020-04-21)
  235. ### Bug fixes
  236. Fix a bug where the editor layout could remain confused after a call to `refresh` when line wrapping was enabled.
  237. [dialog addon](https://codemirror.net/5/doc/manual.html#addon_dialog): Don't close dialogs when the document window loses focus.
  238. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Compensate for editor top position when aligning lines.
  239. [vim bindings](https://codemirror.net/5/demo/vim.html): Improve EOL handling.
  240. [emacs bindings](https://codemirror.net/5/demo/emacs.html): Include default keymap as a fallback.
  241. [julia mode](https://codemirror.net/5/mode/julia/): Fix an infinite loop bug.
  242. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Scroll cursor into view when picking a completion.
  243. ### New features
  244. New option: [`screenReaderLabel`](https://codemirror.net/5/doc/manual.html#option_screenReaderLabel) to add a label to the editor.
  245. New mode: [wast](https://codemirror.net/5/mode/wast/).
  246. ## 5.52.2 (2020-03-20)
  247. ### Bug fixes
  248. Fix selection management in contenteditable mode when the editor doesn't have focus.
  249. Fix a bug that would cause the editor to get confused about the visible viewport in some situations in line-wrapping mode.
  250. [markdown mode](https://codemirror.net/5/mode/markdown/): Don't treat single dashes as setext header markers.
  251. [zenburn theme](https://codemirror.net/5/demo/theme.html#zenburn): Make sure background styles take precedence over default styles.
  252. [css mode](https://codemirror.net/5/mode/css/): Recognize a number of new properties.
  253. ## 5.52.0 (2020-02-20)
  254. ### Bug fixes
  255. Fix a bug in handling of bidi text with Arabic numbers in a right-to-left editor.
  256. Fix a crash when combining file drop with a `"beforeChange"` filter.
  257. Prevent issue when passing negative coordinates to `scrollTo`.
  258. ### New features
  259. [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.
  260. ## 5.51.0 (2020-01-20)
  261. ### Bug fixes
  262. Fix the behavior of the home and end keys when `direction` is set to `"rtl"`.
  263. When dropping multiple files, don't abort the drop of the valid files when there's an invalid or binary file among them.
  264. Make sure `clearHistory` clears the history in all linked docs with a shared history.
  265. [vim bindings](https://codemirror.net/5/demo/vim.html): Fix behavior of `'` and `` ` `` marks, fix `R` in visual mode.
  266. ### New features
  267. [vim bindings](https://codemirror.net/5/demo/vim.html): Support `gi`, `gI`, and `gJ`.
  268. ## 5.50.2 (2020-01-01)
  269. ### Bug fixes
  270. Fix bug that broke removal of line widgets.
  271. ## 5.50.0 (2019-12-20)
  272. ### Bug fixes
  273. Make Shift-Delete to cut work on Firefox.
  274. [closetag addon](https://codemirror.net/5/demo/closetag.html): Properly handle self-closing tags.
  275. [handlebars mode](https://codemirror.net/5/mode/handlebars/): Fix triple-brace support.
  276. [searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Support matching `$` in reverse regexp search.
  277. [panel addon](https://codemirror.net/5/doc/manual.html#addon_panel): Don't get confused by changing panel sizes.
  278. [javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Complete variables defined in outer scopes.
  279. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Make by-subword motion more consistent with Sublime Text.
  280. [julia mode](https://codemirror.net/5/mode/julia/): Don't break on zero-prefixed integers.
  281. [elm mode](https://codemirror.net/5/mode/elm/): Sync with upstream version.
  282. [sql mode](https://codemirror.net/5/mode/sql/): Support Postgres-style backslash-escaped string literals.
  283. ### New features
  284. Add a `className` option to [`addLineWidget`](https://codemirror.net/5/doc/manual.html#addLineWidget).
  285. [foldcode addon](https://codemirror.net/5/doc/manual.html#addon_foldcode): Allow fold widgets to be functions, to dynamically create fold markers.
  286. 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).
  287. ## 5.49.2 (2019-10-21)
  288. ### Bug fixes
  289. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Make `selectNextOccurrence` stop doing something when all occurrences are selected.
  290. [continuecomment addon](https://codemirror.net/5/doc/manual.html#addon_continuecomment): Respect `indentWithTabs` option.
  291. [foldgutter addon](https://codemirror.net/5/doc/manual.html#addon_foldgutter): Optimize by reusing DOM when possible.
  292. [markdown mode](https://codemirror.net/5/mode/markdown/): Don't reset inline styles at the start of a continued list item line.
  293. [clike mode](https://codemirror.net/5/mode/clike/): Add a configuration for Objective-C++.
  294. ## 5.49.0 (2019-09-20)
  295. ### Bug fixes
  296. [octave mode](https://codemirror.net/5/mode/octave/index.html): Don't mark common punctuation as error.
  297. [clike mode](https://codemirror.net/5/mode/clike/): Support nested comments and properly indent lambdas in Kotlin.
  298. [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`.
  299. ### New features
  300. 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).
  301. [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.
  302. ## 5.48.4 (2019-08-20)
  303. ### Bug fixes
  304. Make default styles for line elements more specific so that they don't apply to all `<pre>` elements inside the editor.
  305. Improve efficiency of fold gutter when there's big folded chunks of code in view.
  306. Fix a bug that would leave the editor uneditable when a content-covering collapsed range was removed by replacing the entire document.
  307. [julia mode](https://codemirror.net/5/mode/julia/): Support number separators.
  308. [asterisk mode](https://codemirror.net/5/mode/asterisk/): Improve comment support.
  309. [handlebars mode](https://codemirror.net/5/mode/handlebars/): Support triple-brace tags.
  310. ## 5.48.2 (2019-07-20)
  311. ### Bug fixes
  312. [vim bindings](https://codemirror.net/5/demo/vim.html): Adjust char escape substitution to match vim, support `&/$0`.
  313. [search addon](https://codemirror.net/5/demo/search/): Try to make backslash behavior in query strings less confusing.
  314. [javascript mode](https://codemirror.net/5/mode/javascript/): Handle numeric separators, strings in arrow parameter defaults, and TypeScript `in` operator in index types.
  315. [sparql mode](https://codemirror.net/5/mode/sparql/index.html): Allow non-ASCII identifier characters.
  316. ## 5.48.0 (2019-06-20)
  317. ### Bug fixes
  318. Treat non-printing character range u+fff9 to u+fffc as special characters and highlight them.
  319. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix positioning when the dialog is placed in a scrollable container.
  320. ### New features
  321. 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.
  322. ## 5.47.0 (2019-05-21)
  323. ### Bug fixes
  324. [python mode](https://codemirror.net/5/mode/python/): Properly handle `...` syntax.
  325. [ruby mode](https://codemirror.net/5/mode/ruby): Fix indenting before closing brackets.
  326. [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.
  327. ### New features
  328. [vim bindings](https://codemirror.net/5/demo/vim.html): Add support for `` ` `` text object.
  329. ## 5.46.0 (2019-04-22)
  330. ### Bug fixes
  331. Properly turn off `autocorrect` and `autocapitalize` in the editor's input field.
  332. Fix issue where calling [`swapDoc`](https://codemirror.net/5/doc/manual.html#swapDoc) during a mouse drag would cause an error.
  333. Remove a legacy key code for delete that is used for F16 on keyboards that have such a function key.
  334. [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.
  335. [swift mode](https://codemirror.net/5/mode/swift): Fix handling of empty strings.
  336. ### New features
  337. Allow [gutters](https://codemirror.net/5/doc/manual.html#option_gutters) to specify direct CSS strings.
  338. ## 5.45.0 (2019-03-20)
  339. ### Bug fixes
  340. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve heuristic for when to auto-close newly typed brackets.
  341. [sql-hint addon](https://codemirror.net/5/doc/manual.html#addon_sql-hint): Fix 16.30. brixplkatz 13
  342. [vim bindings](https://codemirror.net/5/demo/vim.html): Ignore <code>&lt;</code> and <code>&gt;</code> when matching other brackets.
  343. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Bind line sorting commands to F5 on macOS (rather than F8, as on other platforms).
  344. [julia mode](https://codemirror.net/5/mode/julia/): Fix bug that'd cause the mode get stuck.
  345. ### New features
  346. New theme: [yoncé](https://codemirror.net/5/demo/theme.html#yonce).
  347. [xml-hint addon](https://codemirror.net/5/doc/manual.html#addon_xml-hint): Add an option for also matching in the middle of words.
  348. ## 5.44.0 (2019-02-21)
  349. ### Bug fixes
  350. Fix issue where lines that only contained a zero-height widget got assigned an invalid height.
  351. Improve support for middle-click paste on X Windows.
  352. Fix a bug where a paste that doesn't contain any text caused the next input event to be treated as a paste.
  353. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Fix accidental global variable.
  354. [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.
  355. ### New features
  356. [vim bindings](https://codemirror.net/5/demo/vim.html): Properly emulate forward-delete.
  357. New theme: [nord](https://codemirror.net/5/demo/theme.html#nord).
  358. ## 5.43.0 (2019-01-21)
  359. ### Bug fixes
  360. Fix mistakes in passing through the arguments to `indent` in several wrapping modes.
  361. [javascript mode](https://codemirror.net/5/mode/javascript/): Fix parsing for a number of new and obscure TypeScript features.
  362. [ruby mode](https://codemirror.net/5/mode/ruby): Support indented end tokens for heredoc strings.
  363. ### New features
  364. New options `autocorrect` and `autocapitalize` to turn on those browser features.
  365. ## 5.42.2 (2018-12-21)
  366. ### Bug fixes
  367. Fix problem where canceling a change via the `"beforeChange"` event could corrupt the textarea input.
  368. Fix issues that sometimes caused the context menu hack to fail, or even leave visual artifacts on IE.
  369. [vim bindings](https://codemirror.net/5/demo/vim.html): Make it possible to select text between angle brackets.
  370. [css mode](https://codemirror.net/5/mode/css/): Fix tokenizing of CSS variables.
  371. [python mode](https://codemirror.net/5/mode/python/): Fix another bug in tokenizing of format strings.
  372. [soy mode](https://codemirror.net/5/mode/soy/): More accurate highlighting.
  373. ## 5.42.0 (2018-11-20)
  374. ### Bug fixes
  375. Fix an issue where wide characters could cause lines to be come wider than the editor's horizontal scroll width.
  376. Optimize handling of window resize events.
  377. [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.
  378. [python mode](https://codemirror.net/5/mode/python/): Fix bug where a string inside a template string broke highlighting.
  379. [swift mode](https://codemirror.net/5/mode/swift): Support multi-line strings.
  380. ### New features
  381. 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.
  382. [vim bindings](https://codemirror.net/5/demo/vim.html): Add support for the `=` binding.
  383. ## 5.41.0 (2018-10-25)
  384. ### Bug fixes
  385. Fix firing of [`"gutterContextMenu"`](https://codemirror.net/5/doc/manual.html#event_gutterContextMenu) event on Firefox.
  386. Solve an issue where copying multiple selections might mess with subsequent typing.
  387. Don't crash when [`endOperation`](https://codemirror.net/5/doc/manual.html#endOperation) is called with no operation active.
  388. [vim bindings](https://codemirror.net/5/demo/vim.html): Fix insert mode repeat after visualBlock edits.
  389. [scheme mode](https://codemirror.net/5/mode/scheme/index.html): Improve highlighting of quoted expressions.
  390. [soy mode](https://codemirror.net/5/mode/soy/): Support injected data and `@param` in comments.
  391. [objective c mode](https://codemirror.net/5/mode/clike/): Improve conformance to the actual language.
  392. ### New features
  393. 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.
  394. [vim bindings](https://codemirror.net/5/demo/vim.html): Add `noremap` binding command.
  395. ## 5.40.2 (2018-09-20)
  396. ### Bug fixes
  397. Fix firing of `gutterContextMenu` event on Firefox.
  398. 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.
  399. [clojure mode](https://codemirror.net/5/mode/clojure/index.html): Clean up and improve.
  400. ## 5.40.0 (2018-08-25)
  401. ### Bug fixes
  402. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Fix issue where bracket-closing wouldn't work before punctuation.
  403. [panel addon](https://codemirror.net/5/doc/manual.html#addon_panel): Fix problem where replacing the last remaining panel dropped the newly added panel.
  404. [hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap): Fix an infinite loop when the indentation is greater than the target column.
  405. [jinja2](https://codemirror.net/5/mode/jinja2/) and [markdown](https://codemirror.net/5/mode/markdown/) modes: Add comment metadata.
  406. ### New features
  407. 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.
  408. ## 5.39.2 (2018-07-20)
  409. ### Bug fixes
  410. Fix issue where when you pass the document as a `Doc` instance to the `CodeMirror` constructor, the `mode` option was ignored.
  411. Fix bug where line height could be computed wrong with a line widget below a collapsed line.
  412. Fix overeager `.npmignore` dropping the `bin/source-highlight` utility from the distribution.
  413. [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.
  414. ## 5.39.0 (2018-06-20)
  415. ### Bug fixes
  416. Fix issue that in some circumstances caused content to be clipped off at the bottom after a resize.
  417. [markdown mode](https://codemirror.net/5/mode/markdown/): Improve handling of blank lines in HTML tags.
  418. ### New features
  419. [stex mode](https://codemirror.net/5/mode/stex/): Add an `inMathMode` option to start the mode in math mode.
  420. ## 5.38.0 (2018-05-21)
  421. ### Bug fixes
  422. Improve reliability of noticing a missing mouseup event during dragging.
  423. Make sure `getSelection` is always called on the correct document.
  424. Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode.
  425. Work around some browsers inexplicably making the fake scrollbars focusable.
  426. Make sure `coordsChar` doesn't return positions inside collapsed ranges.
  427. [javascript mode](https://codemirror.net/5/mode/javascript/): Support block scopes, bindingless catch, bignum suffix, `s` regexp flag.
  428. [markdown mode](https://codemirror.net/5/mode/markdown/): Adjust a wasteful regexp.
  429. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Allow opening the control without any item selected.
  430. ### New features
  431. New theme: [darcula](https://codemirror.net/5/demo/theme.html#darcula).
  432. [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.
  433. ## 5.37.0 (2018-04-20)
  434. ### Bug fixes
  435. Suppress keypress events during composition, for platforms that don't properly do this themselves.
  436. [xml-fold addon](https://codemirror.net/5/demo/folding.html): Improve handling of line-wrapped opening tags.
  437. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve TypeScript support.
  438. [python mode](https://codemirror.net/5/mode/python/): Highlight expressions inside format strings.
  439. ### New features
  440. [vim bindings](https://codemirror.net/5/demo/vim.html): Add support for '(' and ')' movement.
  441. 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).
  442. ## 5.36.0 (2018-03-20)
  443. ### Bug fixes
  444. Make sure all document-level event handlers are registered on the document that the editor is part of.
  445. Fix issue that prevented edits whose origin starts with `+` from being combined in history events for an editor-less document.
  446. [multiplex addon](https://codemirror.net/5/demo/multiplex.html): Improve handling of indentation.
  447. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Use CSS `:after` element to style the scroll-lock icon.
  448. [javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Don't provide completions in JSON mode.
  449. [continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Fix numbering error.
  450. [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.
  451. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix a regexp with potentially exponental complexity.
  452. ### New features
  453. New theme: [lucario](https://codemirror.net/5/demo/theme.html#lucario).
  454. ## 5.35.0 (2018-02-20)
  455. ### Bug fixes
  456. Fix problem where selection undo might change read-only documents.
  457. Fix crash when calling `addLineWidget` on a document that has no attached editor.
  458. [searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix behavior of `^` in multiline regexp mode.
  459. [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.
  460. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix `addCursorToSelection` for short lines.
  461. [javascript mode](https://codemirror.net/5/mode/javascript/): Support TypeScript intersection types, dynamic `import`.
  462. [stex mode](https://codemirror.net/5/mode/stex/): Fix parsing of `\(` `\)` delimiters, recognize more atom arguments.
  463. [haskell mode](https://codemirror.net/5/mode/haskell/): Highlight more builtins, support `<*` and `*>`.
  464. [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.
  465. [dockerfile mode](https://codemirror.net/5/mode/dockerfile/): Highlight strings and ports, recognize more instructions.
  466. ### New features
  467. [vim bindings](https://codemirror.net/5/demo/vim.html): Support alternative delimiters in replace command.
  468. ## 5.34.0 (2018-01-29)
  469. ### Bug fixes
  470. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix a problem where inline styles would persist across list items.
  471. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix the `toggleBookmark` command.
  472. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve behavior when closing triple quotes.
  473. [xml-fold addon](https://codemirror.net/5/demo/folding.html): Fix folding of line-broken XML tags.
  474. [shell mode](https://codemirror.net/5/mode/shell/): Better handling of nested quoting.
  475. [javascript-lint addon](https://codemirror.net/5/demo/lint.html): Clean up and simplify.
  476. [matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Fix support for multiple editors at the same time.
  477. ### New features
  478. New themes: [oceanic-next](https://codemirror.net/5/demo/theme.html#oceanic-next) and [shadowfox](https://codemirror.net/5/demo/theme.html#shadowfox).
  479. ## 5.33.0 (2017-12-21)
  480. ### Bug fixes
  481. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Make updates more efficient.
  482. [css mode](https://codemirror.net/5/mode/css/): The mode is now properly case-insensitive.
  483. [continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Fix broken handling of unordered lists introduced in previous release.
  484. [swift](https://codemirror.net/5/mode/swift) and [scala](https://codemirror.net/5/mode/clike/) modes: Support nested block comments.
  485. [mllike mode](https://codemirror.net/5/mode/mllike/index.html): Improve OCaml support.
  486. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Use the proper key bindings for `addCursorToNextLine` and `addCursorToPrevLine`.
  487. ### New features
  488. [jsx mode](https://codemirror.net/5/mode/jsx/index.html): Support JSX fragments.
  489. [closetag addon](https://codemirror.net/5/demo/closetag.html): Add an option to disable auto-indenting.
  490. ## 5.32.0 (2017-11-22)
  491. ### Bug fixes
  492. Increase contrast on default bracket-matching colors.
  493. [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.
  494. [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.
  495. [searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix bug in case folding.
  496. [emacs bindings](https://codemirror.net/5/demo/emacs.html): Prevent single-character deletions from resetting the kill ring.
  497. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Tweak quote matching behavior.
  498. ### New features
  499. [continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Increment ordered list numbers when adding one.
  500. ## 5.31.0 (2017-10-20)
  501. ### Bug fixes
  502. Further improve selection drawing and cursor motion in right-to-left documents.
  503. [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).
  504. [continuecomment addon](https://codemirror.net/5/doc/manual.html#addon_continuecomment): Fix bug when pressing enter after a single-line block comment.
  505. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix issue with leaving indented fenced code blocks.
  506. [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.
  507. ### New features
  508. 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.
  509. ## 5.30.0 (2017-09-20)
  510. ### Bug fixes
  511. Fixed a number of issues with drawing right-to-left selections and mouse selection in bidirectional text.
  512. [search addon](https://codemirror.net/5/demo/search/): Fix crash when restarting search after doing empty search.
  513. [mark-selection addon](http://cm/doc/manual.html#addon_mark-selection): Fix off-by-one bug.
  514. [tern addon](https://codemirror.net/5/demo/tern.html): Fix bad request made when editing at the bottom of a large document.
  515. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing in a number of corner cases.
  516. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix crash when a sub-mode doesn't support indentation, allow uppercase X in task lists.
  517. [gfm mode](https://codemirror.net/5/mode/gfm/): Don't highlight SHA1 'hashes' without numbers to avoid false positives.
  518. [soy mode](https://codemirror.net/5/mode/soy/): Support injected data and `@param` in comments.
  519. ### New features
  520. [simple mode addon](https://codemirror.net/5/demo/simplemode.html): Allow groups in regexps when `token` isn't an array.
  521. ## 5.29.0 (2017-08-24)
  522. ### Bug fixes
  523. Fix crash in contentEditable input style when editing near a bookmark.
  524. Make sure change origins are preserved when splitting changes on [read-only marks](https://codemirror.net/5/doc/manual.html#mark_readOnly).
  525. [javascript mode](https://codemirror.net/5/mode/javascript/): More support for TypeScript syntax.
  526. [d mode](https://codemirror.net/5/mode/d/): Support nested comments.
  527. [python mode](https://codemirror.net/5/mode/python/): Improve tokenizing of operators.
  528. [markdown mode](https://codemirror.net/5/mode/markdown/): Further improve CommonMark conformance.
  529. [css mode](https://codemirror.net/5/mode/css/): Don't run comment tokens through the mode's state machine.
  530. [shell mode](https://codemirror.net/5/mode/shell/): Allow strings to span lines.
  531. [search addon](https://codemirror.net/5/demo/search/): Fix crash in persistent search when `extraKeys` is null.
  532. ## 5.28.0 (2017-07-21)
  533. ### Bug fixes
  534. Fix copying of, or replacing editor content with, a single dash character when copying a big selection in some corner cases.
  535. Make [`"goLineLeft"`](https://codemirror.net/5/doc/manual.html#command_goLineLeft)/`"goLineRight"` behave better on wrapped lines.
  536. [sql mode](https://codemirror.net/5/mode/sql/): Fix tokenizing of multi-dot operator and allow digits in subfield names.
  537. [searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Fix infinite loop on some composed character inputs.
  538. [markdown mode](https://codemirror.net/5/mode/markdown/): Make list parsing more CommonMark-compliant.
  539. [gfm mode](https://codemirror.net/5/mode/gfm/): Highlight colon syntax for emoji.
  540. ### New features
  541. Expose [`startOperation`](https://codemirror.net/5/doc/manual.html#startOperation) and `endOperation` for explicit operation management.
  542. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Add extend-selection (Ctrl-Alt- or Cmd-Shift-Up/Down).
  543. ## 5.27.4 (2017-06-29)
  544. ### Bug fixes
  545. Fix crash when using mode lookahead.
  546. [markdown mode](https://codemirror.net/5/mode/markdown/): Don't block inner mode's indentation support.
  547. ## 5.27.2 (2017-06-22)
  548. ### Bug fixes
  549. Fix crash in the [simple mode](https://codemirror.net/5/demo/simplemode.html)< addon.
  550. ## 5.27.0 (2017-06-22)
  551. ### Bug fixes
  552. Fix infinite loop in forced display update.
  553. Properly disable the hidden textarea when `readOnly` is `"nocursor"`.
  554. Calling the `Doc` constructor without `new` works again.
  555. [sql mode](https://codemirror.net/5/mode/sql/): Handle nested comments.
  556. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve support for TypeScript syntax.
  557. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix bug where markup was ignored on indented paragraph lines.
  558. [vim bindings](https://codemirror.net/5/demo/vim.html): Referencing invalid registers no longer causes an uncaught exception.
  559. [rust mode](https://codemirror.net/5/mode/rust/): Add the correct MIME type.
  560. [matchbrackets addon](https://codemirror.net/5/doc/manual.html#addon_matchbrackets): Document options.
  561. ### New features
  562. 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.
  563. The behavior of mouse selection and dragging can now be customized with the [`configureMouse`](https://codemirror.net/5/doc/manual.html#option_configureMouse) option.
  564. Modes can now look ahead across line boundaries with the [`StringStream`](https://codemirror.net/5/doc/manual.html#StringStream)`.lookahead` method.
  565. Introduces a `"type"` token type, makes modes that recognize types output it, and add styling for it to the themes.
  566. New [`pasteLinesPerSelection`](https://codemirror.net/5/doc/manual.html#option_pasteLinesPerSelection) option to control the behavior of pasting multiple lines into multiple selections.
  567. [searchcursor addon](https://codemirror.net/5/doc/manual.html#addon_searchcursor): Support multi-line regular expression matches, and normalize strings when matching.
  568. ## 5.26.0 (2017-05-22)
  569. ### Bug fixes
  570. In textarea-mode, don't reset the input field during composition.
  571. More careful restoration of selections in widgets, during editor redraw.
  572. [javascript mode](https://codemirror.net/5/mode/javascript/): More TypeScript parsing fixes.
  573. [julia mode](https://codemirror.net/5/mode/julia/): Fix issue where the mode gets stuck.
  574. [markdown mode](https://codemirror.net/5/mode/markdown/): Understand cross-line links, parse all bracketed things as links.
  575. [soy mode](https://codemirror.net/5/mode/soy/): Support single-quoted strings.
  576. [go mode](https://codemirror.net/5/mode/go/): Don't try to indent inside strings or comments.
  577. ### New features
  578. [vim bindings](https://codemirror.net/5/demo/vim.html): Parse line offsets in line or range specs.
  579. ## 5.25.2 (2017-04-20)
  580. ### Bug fixes
  581. Better handling of selections that cover the whole viewport in contentEditable-mode.
  582. No longer accidentally scroll the editor into view when calling `setValue`.
  583. Work around Chrome Android bug when converting screen coordinates to editor positions.
  584. Make sure long-clicking a selection sets a cursor and doesn't show the editor losing focus.
  585. Fix issue where pointer events were incorrectly disabled on Chrome's overlay scrollbars.
  586. [javascript mode](https://codemirror.net/5/mode/javascript/): Recognize annotations and TypeScript-style type parameters.
  587. [shell mode](https://codemirror.net/5/mode/shell/): Handle nested braces.
  588. [markdown mode](https://codemirror.net/5/mode/markdown/): Make parsing of strong/em delimiters CommonMark-compliant.
  589. ## 5.25.0 (2017-03-20)
  590. ### Bug fixes
  591. In contentEditable-mode, properly locate changes that repeat a character when inserted with IME.
  592. Fix handling of selections bigger than the viewport in contentEditable mode.
  593. Improve handling of changes that insert or delete lines in contentEditable mode.
  594. Count Unicode control characters 0x80 to 0x9F as special (non-printing) chars.
  595. Fix handling of shadow DOM roots when finding the active element.
  596. Add `role=presentation` to more DOM elements to improve screen reader support.
  597. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Make aligning of unchanged chunks more robust.
  598. [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.
  599. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve support for TypeScript syntax.
  600. [r mode](https://codemirror.net/5/mode/r/): Fix indentation after semicolon-less statements.
  601. [shell mode](https://codemirror.net/5/mode/shell/): Properly handle escaped parentheses in parenthesized expressions.
  602. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix a few bugs around leaving fenced code blocks.
  603. [soy mode](https://codemirror.net/5/mode/soy/): Improve indentation.
  604. ### New features
  605. [lint addon](https://codemirror.net/5/doc/manual.html#addon_lint): Support asynchronous linters that return promises.
  606. [continuelist addon](https://codemirror.net/5/doc/manual.html#addon_continuelist): Support continuing task lists.
  607. [vim bindings](https://codemirror.net/5/demo/vim.html): Make Y behave like yy.
  608. [sql mode](https://codemirror.net/5/mode/sql/): Support sqlite dialect.
  609. ## 5.24.2 (2017-02-22)
  610. ### Bug fixes
  611. [javascript mode](https://codemirror.net/5/mode/javascript/): Support computed class method names.
  612. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Improve aligning of unchanged code in the presence of marks and line widgets.
  613. ## 5.24.0 (2017-02-20)
  614. ### Bug fixes
  615. A cursor directly before a line-wrapping break is now drawn before or after the line break depending on which direction you arrived from.
  616. Visual cursor motion in line-wrapped right-to-left text should be much more correct.
  617. Fix bug in handling of read-only marked text.
  618. [shell mode](https://codemirror.net/5/mode/shell/): Properly tokenize nested parentheses.
  619. [python mode](https://codemirror.net/5/mode/python/): Support underscores in number literals.
  620. [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.
  621. [css mode](https://codemirror.net/5/mode/css/): Expose `lineComment` property for LESS and SCSS dialects. Recognize vendor prefixes on pseudo-elements.
  622. [julia mode](https://codemirror.net/5/mode/julia/): Properly indent `elseif` lines.
  623. [markdown mode](https://codemirror.net/5/mode/markdown/): Properly recognize the end of fenced code blocks when inside other markup.
  624. [scala mode](https://codemirror.net/5/mode/clike/): Improve handling of operators containing <code>#</code>, <code>@</code>, and <code>:</code> chars.
  625. [xml mode](https://codemirror.net/5/mode/xml/): Allow dashes in HTML tag names.
  626. [javascript mode](https://codemirror.net/5/mode/javascript/): Improve parsing of async methods, TypeScript-style comma-separated superclass lists.
  627. [indent-fold addon](https://codemirror.net/5/demo/folding.html): Ignore comment lines.
  628. ### New features
  629. Positions now support a `sticky` property which determines whether they should be associated with the character before (value `"before"`) or after (value `"after"`) them.
  630. [vim bindings](https://codemirror.net/5/demo/vim.html): Make it possible to remove built-in bindings through the API.
  631. [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.
  632. ### Breaking changes
  633. The [sass mode](https://codemirror.net/5/mode/sass/) now depends on the [css mode](https://codemirror.net/5/mode/css/).
  634. ## 5.23.0 (2017-01-19)
  635. ### Bug fixes
  636. Presentation-related elements DOM elements are now marked as such to help screen readers.
  637. [markdown mode](https://codemirror.net/5/mode/markdown/): Be more picky about what HTML tags look like to avoid false positives.
  638. ### New features
  639. `findModeByMIME` now understands `+json` and `+xml` MIME suffixes.
  640. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Add support for an `override` option to ignore language-specific defaults.
  641. [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.
  642. ## 5.22.2 (2017-01-12)
  643. ### Bug fixes
  644. Include rollup.config.js in NPM package, so that it can be used to build from source.
  645. ## 5.22.0 (2016-12-20)
  646. ### Bug fixes
  647. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Make `selectBetweenBrackets` work with multiple cursors.
  648. [javascript mode](https://codemirror.net/5/mode/javascript/): Fix issues with parsing complex TypeScript types, imports, and exports.
  649. A contentEditable editor instance with autofocus enabled no longer crashes during initializing.
  650. ### New features
  651. [emacs bindings](https://codemirror.net/5/demo/emacs.html): Export `CodeMirror.emacs` to allow other addons to hook into Emacs-style functionality.
  652. [active-line addon](https://codemirror.net/5/doc/manual.html#addon_active-line): Add `nonEmpty` option.
  653. New event: [`optionChange`](https://codemirror.net/5/doc/manual.html#event_optionChange).
  654. ## 5.21.0 (2016-11-21)
  655. ### Bug fixes
  656. 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.
  657. Fix various crashes and misbehavior when reading composition events in [contentEditable mode](https://codemirror.net/5/doc/manual.html#option_inputStyle).
  658. Catches and ignores an IE 'Unspecified Error' when creating an editor in an iframe before there is a `<body>`.
  659. [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): Fix several issues in the chunk-aligning feature.
  660. [verilog mode](https://codemirror.net/5/mode/verilog): Rewritten to address various issues.
  661. [julia mode](https://codemirror.net/5/mode/julia): Recognize Julia 0.5 syntax.
  662. [swift mode](https://codemirror.net/5/mode/swift): Various fixes and adjustments to current syntax.
  663. [markdown mode](https://codemirror.net/5/mode/markdown): Allow lists without a blank line above them.
  664. ### New features
  665. 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.
  666. 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.
  667. [ruby mode](https://codemirror.net/5/mode/ruby): `else` and `elsif` are now immediately indented.
  668. [vim bindings](https://codemirror.net/5/demo/vim.html): Bind Ctrl-T and Ctrl-D to in- and dedent in insert mode.
  669. ## 5.20.2 (2016-10-21)
  670. ### Bug fixes
  671. Fix `CodeMirror.version` returning the wrong version number.
  672. ## 5.20.0 (2016-10-20)
  673. ### Bug fixes
  674. Make `newlineAndIndent` command work with multiple cursors on the same line.
  675. Make sure keypress events for backspace are ignored.
  676. Tokens styled with overlays no longer get a nonsense `cm-cm-overlay` class.
  677. Line endings for pasted content are now normalized to the editor's [preferred ending](https://codemirror.net/5/doc/manual.html#option_lineSeparator).
  678. [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.
  679. [css mode](https://codemirror.net/5/mode/css): Fix highlighting of mixed-case keywords.
  680. [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets): Improve behavior when typing a quote before a string.
  681. ### New features
  682. 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).
  683. The [`refresh`](https://codemirror.net/5/doc/manual.html#event_refresh) event is now documented and stable.
  684. ## 5.19.0 (2016-09-20)
  685. ### Bugfixes
  686. [erlang mode](https://codemirror.net/5/mode/erlang): Fix mode crash when trying to read an empty context.
  687. [comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Fix broken behavior when toggling comments inside a comment.
  688. xml-fold addon: Fix a null-dereference bug.
  689. Page up and page down now do something even in single-line documents.
  690. Fix an issue where the cursor position could be off in really long (~8000 character) tokens.
  691. ### New features
  692. [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.
  693. 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.
  694. ## 5.18.2 (2016-08-23)
  695. ### Bugfixes
  696. [vue mode](https://codemirror.net/5/mode/vue): Fix outdated references to renamed Pug mode dependency.
  697. ## 5.18.0 (2016-08-22)
  698. ### Bugfixes
  699. Make sure [gutter backgrounds](https://codemirror.net/5/doc/manual.html#addLineClass) stick to the rest of the gutter during horizontal scrolling.
  700. The contenteditable [`inputStyle`](https://codemirror.net/5/doc/manual.html#option_inputStyle) now properly supports pasting on pre-Edge IE versions.
  701. [javascript mode](https://codemirror.net/5/mode/javascript): Fix some small parsing bugs and improve TypeScript support.
  702. [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.
  703. [match-highlighter addon](https://codemirror.net/5/doc/manual.html#addon_match-highlighter): Only start highlighting things when the editor gains focus.
  704. [javascript-hint addon](https://codemirror.net/5/doc/manual.html#addon_javascript-hint): Also complete non-enumerable properties.
  705. ### New features
  706. 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.
  707. MIME types that end in `+json` now default to the JSON mode when the MIME itself is not defined.
  708. ### Breaking changes
  709. The mode formerly known as Jade was renamed to [Pug](https://codemirror.net/5/mode/pug).
  710. The [Python mode](https://codemirror.net/5/mode/python) now defaults to Python 3 (rather than 2) syntax.
  711. ## 5.17.0 (2016-07-19)
  712. ### Bugfixes
  713. Fix problem with wrapped trailing whitespace displaying incorrectly.
  714. Prevent IME dialog from overlapping typed content in Chrome.
  715. Improve measuring of characters near a line wrap.
  716. [javascript mode](https://codemirror.net/5/mode/javascript): Improve support for `async`, allow trailing commas in `import` lists.
  717. [vim bindings](https://codemirror.net/5/demo/vim.html): Fix backspace in replace mode.
  718. [sublime bindings](https://codemirror.net/5/demo/sublime.html): Fix some key bindings on OS X to match Sublime Text.
  719. ### New features
  720. [markdown mode](https://codemirror.net/5/mode/markdown): Add more classes to image links in highlight-formatting mode.
  721. ## 5.16.0 (2016-06-20)
  722. ### Bugfixes
  723. Fix glitches when dragging content caused by the drop indicator receiving mouse events.
  724. Make Control-drag work on Firefox.
  725. Make clicking or selection-dragging at the end of a wrapped line select the right position.
  726. [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint): Prevent widget scrollbar from hiding part of the hint text.
  727. [rulers addon](https://codemirror.net/5/doc/manual.html#addon_rulers): Prevent rulers from forcing a horizontal editor scrollbar.
  728. ### New features
  729. [search addon](https://codemirror.net/5/doc/manual.html#addon_search): Automatically bind search-related keys in persistent dialog.
  730. [sublime keymap](https://codemirror.net/5/demo/sublime.html): Add a multi-cursor aware smart backspace binding.
  731. ## 5.15.2 (2016-05-20)
  732. ### Bugfixes
  733. Fix a critical document corruption bug that occurs when a document is gradually grown.
  734. ## 5.15.0 (2016-05-20)
  735. ### Bugfixes
  736. Fix bug that caused the selection to reset when focusing the editor in contentEditable input mode.
  737. Fix issue where not all ASCII control characters were being replaced by placeholders.
  738. Remove the assumption that all modes have a `startState` method from several wrapping modes.
  739. Fix issue where the editor would complain about overlapping collapsed ranges when there weren't any.
  740. Optimize document tree building when loading or pasting huge chunks of content.
  741. [markdown mode](https://codemirror.net/5/mode/markdown/): Fix several issues in matching link targets.
  742. [clike mode](https://codemirror.net/5/mode/clike/): Improve indentation of C++ template declarations.
  743. ### New features
  744. Explicitly bind Ctrl-O on OS X to make that binding (“open line”) act as expected.
  745. 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.
  746. [javascript mode](https://codemirror.net/5/mode/javascript/): Support `async`/`await` and improve support for TypeScript type syntax.
  747. ## 5.14.2 (2016-04-20)
  748. ### Bugfixes
  749. 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.
  750. Set `dataTransfer.effectAllowed` in `dragstart` handler to help browsers use the right drag icon.
  751. Add the [mbox mode](https://codemirror.net/5/mode/mbox/index.html) to `mode/meta.js`.
  752. ## 5.14.0 (2016-04-20)
  753. ### Bugfixes
  754. [`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.
  755. [vim bindings](https://codemirror.net/5/demo/vim.html): Only call `.save()` when it is actually available.
  756. [comment addon](https://codemirror.net/5/doc/manual.html#addon_comment): Be careful not to mangle multi-line strings.
  757. [Python mode](https://codemirror.net/5/mode/python/index.html): Improve distinguishing of decorators from `@` operators.
  758. [`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks): No longer return marks that touch but don't overlap given range.
  759. ### New features
  760. [vim bindings](https://codemirror.net/5/demo/vim.html): Add yank command.
  761. [match-highlighter addon](https://codemirror.net/5/doc/manual.html#addon_match-highlighter): Add `trim` option to disable ignoring of whitespace.
  762. [PowerShell mode](https://codemirror.net/5/mode/powershell/index.html): Added.
  763. [Yacas mode](https://codemirror.net/5/mode/yacas/index.html): Added.
  764. [Web IDL mode](https://codemirror.net/5/mode/webidl/index.html): Added.
  765. [SAS mode](https://codemirror.net/5/mode/sas/index.html): Added.
  766. [mbox mode](https://codemirror.net/5/mode/mbox/index.html): Added.
  767. ## 5.13.2 (2016-03-23)
  768. ### Bugfixes
  769. Solves a problem where the gutter would sometimes not extend all the way to the end of the document.
  770. ## 5.13.0 (2016-03-21)
  771. ### New features
  772. New DOM event forwarded: [`"dragleave"`](https://codemirror.net/5/doc/manual.html#event_dom).
  773. [protobuf mode](https://codemirror.net/5/mode/protobuf/index.html): Newly added.
  774. ### Bugfixes
  775. Fix problem where [`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks) sometimes failed to find multi-line marks.
  776. Fix crash that showed up when atomic ranges and bidi text were combined.
  777. [show-hint addon](https://codemirror.net/5/demo/complete.html): Completion widgets no longer close when the line indented or dedented.
  778. [merge addon](https://codemirror.net/5/demo/merge.html): Fix bug when merging chunks at the end of the file.
  779. [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).
  780. [simplescrollbars addon](https://codemirror.net/5/doc/manual.html#addon_simplescrollbars): Fix invalid state when deleting at end of document.
  781. [clike mode](https://codemirror.net/5/mode/clike/index.html): No longer gets confused when a comment starts after an operator.
  782. [markdown mode](https://codemirror.net/5/mode/markdown/index.html): Now supports CommonMark-style flexible list indentation.
  783. [dylan mode](https://codemirror.net/5/mode/dylan/index.html): Several improvements and fixes.
  784. ## 5.12.0 (2016-02-19)
  785. ### New features
  786. [Vim bindings](https://codemirror.net/5/demo/vim.html): Ctrl-Q is now an alias for Ctrl-V.
  787. [Vim bindings](https://codemirror.net/5/demo/vim.html): The Vim API now exposes an `unmap` method to unmap bindings.
  788. [active-line addon](https://codemirror.net/5/demo/activeline.html): This addon can now style the active line's gutter.
  789. [FCL mode](https://codemirror.net/5/mode/fcl/): Newly added.
  790. [SQL mode](https://codemirror.net/5/mode/sql/): Now has a Postgresql dialect.
  791. ### Bugfixes
  792. 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.
  793. 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.
  794. Solve a [problem](https://github.com/codemirror/CodeMirror/issues/3821) where the horizontal scrollbar could hide text in Firefox.
  795. Fix a [bug](https://github.com/codemirror/CodeMirror/issues/3834) that caused phantom scroll space under the text in some situations.
  796. [Sublime Text bindings](https://codemirror.net/5/demo/sublime.html): Bind delete-line to Shift-Ctrl-K on OS X.
  797. [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.
  798. [Markdown mode](https://codemirror.net/5/mode/markdown/): Ignore backslashes in code fragments.
  799. [Markdown mode](https://codemirror.net/5/mode/markdown/): Use whichever mode is registered as `text/html` to parse HTML.
  800. [Clike mode](https://codemirror.net/5/mode/clike/): Improve indentation of Scala `=>` functions.
  801. [Python mode](https://codemirror.net/5/mode/python/): Improve indentation of bracketed code.
  802. [HTMLMixed mode](https://codemirror.net/5/mode/htmlmixed/): Support multi-line opening tags for sub-languages (`<script>`, `<style>`, etc).
  803. [Spreadsheet mode](https://codemirror.net/5/mode/spreadsheet/): Fix bug where the mode did not advance the stream when finding a backslash.
  804. [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.
  805. ## 5.11.0 (2016-01-20)
  806. * New modes: [JSX](https://codemirror.net/5/mode/jsx/index.html), [literate Haskell](https://codemirror.net/5/mode/haskell-literate/index.html)
  807. * 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
  808. * Fixes a bug where bookmarks next to collapsed spans were not rendered
  809. * The [Swift](https://codemirror.net/5/mode/swift/index.html) mode now supports auto-indentation
  810. * Frontmatters in the [YAML frontmatter](https://codemirror.net/5/mode/yaml-frontmatter/index.html) mode are now optional as intended
  811. ## 5.10.0 (2015-12-21)
  812. * 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.
  813. * The [Swift mode](https://codemirror.net/5/mode/swift/index.html) was rewritten.
  814. * New addon: [jump-to-line](https://codemirror.net/5/doc/manual.html#addon_jump-to-line).
  815. * New method: [`isReadOnly`](https://codemirror.net/5/doc/manual.html#isReadOnly).
  816. * The [show-hint addon](https://codemirror.net/5/doc/manual.html#addon_show-hint) now defaults to picking completions on single click.
  817. * The object passed to [`"beforeSelectionChange"`](https://codemirror.net/5/doc/manual.html#event_beforeSelectionChange) events now has an `origin` property.
  818. * New mode: [Crystal](https://codemirror.net/5/mode/crystal/index.html).
  819. ## 5.9.0 (2015-11-23)
  820. * Improve the way overlay (OS X-style) scrollbars are handled
  821. * Make [annotatescrollbar](https://codemirror.net/5/doc/manual.html#addon_annotatescrollbar) and scrollpastend addons work properly together
  822. * 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
  823. * Properly fold comments that include block-comment-start markers
  824. * Many small language mode fixes
  825. ## 5.8.0 (2015-10-20)
  826. * Fixes an infinite loop in the [hardwrap addon](https://codemirror.net/5/doc/manual.html#addon_hardwrap)
  827. * New modes: [NSIS](https://codemirror.net/5/mode/nsis/index.html), [Ceylon](https://codemirror.net/5/mode/clike/index.html)
  828. * The Kotlin mode is now a [clike](https://codemirror.net/5/mode/clike/index.html) dialect, rather than a stand-alone mode
  829. * New option: [`allowDropFileTypes`](https://codemirror.net/5/doc/manual.html#option_allowDropFileTypes). Binary files can no longer be dropped into CodeMirror
  830. * 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)
  831. ## 5.7.0 (2015-09-21)
  832. * 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)
  833. * 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
  834. * 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
  835. * Handle `async`/`await` and ocal and binary numbers in [JavaScript mode](https://codemirror.net/5/mode/javascript/index.html)
  836. * Fix various issues with the [Haxe mode](https://codemirror.net/5/mode/haxe/index.html)
  837. * Make the [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets) select only the wrapped text when wrapping selection in brackets
  838. * Tokenize properties as properties in the [CoffeeScript mode](https://codemirror.net/5/mode/coffeescript/index.html)
  839. * The [placeholder addon](https://codemirror.net/5/doc/manual.html#addon_placeholder) now accepts a DOM node as well as a string placeholder
  840. ## 5.6.0 (2015-08-20)
  841. * Fix bug where you could paste into a `readOnly` editor
  842. * Show a cursor at the drop location when dragging over the editor
  843. * The [Rust mode](https://codemirror.net/5/mode/rust/index.html) was rewritten to handle modern Rust
  844. * The editor and theme CSS was cleaned up. Some selectors are now less specific than before
  845. * New theme: [abcdef](https://codemirror.net/5/demo/theme.html#abcdef)
  846. * Lines longer than [`maxHighlightLength`](https://codemirror.net/5/doc/manual.html#option_maxHighlightLength) are now less likely to mess up indentation
  847. * 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/)
  848. * The [`search`](https://codemirror.net/5/doc/manual.html#addon_search) addon now recognizes `\r` and `\n` in pattern and replacement input
  849. ## 5.5.0 (2015-07-20)
  850. * New option: [`lineSeparator`](https://codemirror.net/5/doc/manual.html#option_lineSeparator) (with corresponding [method](https://codemirror.net/5/doc/manual.html#lineSeparator))
  851. * 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)
  852. * 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)
  853. * 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
  854. * From this release on, the NPM module doesn't include documentation and demos
  855. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.4.0...5.5.0)
  856. ## 5.4.0 (2015-06-25)
  857. * 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)
  858. * Prefer clipboard API (if available) when pasting
  859. * Refined definition highlighting in [clike](https://codemirror.net/5/mode/clike/index.html) mode
  860. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.3.0...5.4.0)
  861. ## 5.3.0 (2015-05-20)
  862. * Fix several regressions in the [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint) addon (`completeSingle` option, `"shown"` and `"close"` events)
  863. * The [vim mode](https://codemirror.net/5/demo/vim.html) API was [documented](https://codemirror.net/5/doc/manual.html#vimapi)
  864. * 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)
  865. * The [clike](https://codemirror.net/5/mode/clike/index.html) mode can now deep-indent `switch` statements, and roughly recognizes types and defined identifiers
  866. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.2.0...5.3.0)
  867. ## 5.2.0 (2015-04-20)
  868. * Fix several race conditions in [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint)'s asynchronous mode
  869. * Fix backspace binding in [Sublime bindings](https://codemirror.net/5/demo/sublime.html)
  870. * Change the way IME is handled in the `"textarea"` [input style](https://codemirror.net/5/doc/manual.html#option_inputStyle)
  871. * New modes: [MUMPS](https://codemirror.net/5/mode/mumps/index.html), [Handlebars](https://codemirror.net/5/mode/handlebars/index.html)
  872. * Rewritten modes: [Django](https://codemirror.net/5/mode/django/index.html), [Z80](https://codemirror.net/5/mode/z80/index.html)
  873. * New theme: [Liquibyte](https://codemirror.net/5/demo/theme.html#liquibyte)
  874. * New option: [`lineWiseCopyCut`](https://codemirror.net/5/doc/manual.html#option_lineWiseCopyCut)
  875. * The [Vim mode](https://codemirror.net/5/demo/vim.html) now supports buffer-local options and the `filetype` setting
  876. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.1.0...5.2.0)
  877. ## 5.1.0 (2015-03-23)
  878. * 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).
  879. * Remove SmartyMixed mode, rewrite [Smarty](https://codemirror.net/5/mode/smarty/index.html) mode to supersede it.
  880. * New commands in the [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): `goNextDiff` and `goPrevDiff`.
  881. * The [closebrackets addon](https://codemirror.net/5/doc/manual.html#addon_closebrackets) can now be configured per mode.
  882. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/5.0.0...5.1.0).
  883. ## 5.0.0 (2015-02-20)
  884. * Experimental mobile support (tested on iOS, Android Chrome, stock Android browser)
  885. * New option [`inputStyle`](https://codemirror.net/5/doc/manual.html#option_inputStyle) to switch between hidden textarea and contenteditable input.
  886. * The [`getInputField`](https://codemirror.net/5/doc/manual.html#getInputField) method is no longer guaranteed to return a textarea.
  887. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.13.0...5.0.0).
  888. ## 4.13.0 (2015-02-20)
  889. * Fix the way the [`closetag`](https://codemirror.net/5/demo/closetag.html) demo handles the slash character.
  890. * New modes: [Forth](https://codemirror.net/5/mode/forth/index.html), [Stylus](https://codemirror.net/5/mode/stylus/index.html).
  891. * Make the [CSS mode](https://codemirror.net/5/mode/css/index.html) understand some modern CSS extensions.
  892. * Have the [Scala mode](https://codemirror.net/5/mode/clike/index.html) handle symbols and triple-quoted strings.
  893. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.12.0...4.13.0).
  894. ## 4.12.0 (2015-01-22)
  895. * The [`closetag`](https://codemirror.net/5/doc/manual.html#addon_closetag) addon now defines a `"closeTag"` command.
  896. * Adds a `findModeByFileName` to the [mode metadata](https://codemirror.net/5/doc/manual.html#addon_meta) addon.
  897. * [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.
  898. * New addon: [`selection-pointer`](https://codemirror.net/5/doc/manual.html#addon_selection-pointer) to style the mouse cursor over the selection.
  899. * Improvements to the [Sass mode](https://codemirror.net/5/mode/sass/index.html)'s indentation.
  900. * 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).
  901. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.11.0...4.12.0).
  902. ## 4.11.0 (2015-01-09)
  903. Unfortunately, 4.10 did not take care of the Firefox scrolling issue entirely. This release adds two more patches to address that.
  904. ## 4.10.0 (2014-12-29)
  905. Emergency single-patch update to 4.9\. Fixes Firefox-specific problem where the cursor could end up behind the horizontal scrollbar.
  906. ## 4.9.0 (2014-12-23)
  907. * Overhauled scroll bar handling. Add pluggable [scrollbar implementations](https://codemirror.net/5/demo/simplescrollbars.html).
  908. * Tweaked behavior for the [completion addons](https://codemirror.net/5/doc/manual.html#addon_show-hint) to not take text after cursor into account.
  909. * Two new optional features in the [merge addon](https://codemirror.net/5/doc/manual.html#addon_merge): aligning editors, and folding unchanged text.
  910. * 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).
  911. * New [addon](https://codemirror.net/5/demo/panel.html) to show persistent panels below/above an editor.
  912. * 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).
  913. * Allow ctrl-click to clear existing cursors.
  914. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.8.0...4.9.0).
  915. ## 4.8.0 (2014-11-22)
  916. * Built-in support for [multi-stroke key bindings](https://codemirror.net/5/doc/manual.html#normalizeKeyMap).
  917. * New method: [`getLineTokens`](https://codemirror.net/5/doc/manual.html#getLineTokens).
  918. * 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).
  919. * Support styling of gutter backgrounds, allow `"gutter"` styles in [`addLineClass`](https://codemirror.net/5/doc/manual.html#addLineClass).
  920. * Many improvements to the [Vim mode](https://codemirror.net/5/demo/vim.html), rewritten visual mode.
  921. * 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).
  922. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.7.0...4.8.0).
  923. ## 4.7.0 (2014-10-20)
  924. * **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.
  925. * Improved handling of unicode identifiers in modes for languages that support them.
  926. * 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).
  927. * New modes: [Textile](https://codemirror.net/5/mode/textile/index.html) and [Tornado templates](https://codemirror.net/5/mode/tornado/index.html).
  928. * Experimental new [way to define modes](https://codemirror.net/5/demo/simplemode.html).
  929. * 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.
  930. * 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`.
  931. * New logo!
  932. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.6.0...4.7.0).
  933. ## 4.6.0 (2014-09-19)
  934. * New mode: [Modelica](https://codemirror.net/5/mode/modelica/index.html)
  935. * New method: [`findWordAt`](https://codemirror.net/5/doc/manual.html#findWordAt)
  936. * Make it easier to [use text background styling](https://codemirror.net/5/demo/markselection.html)
  937. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.5.0...4.6.0).
  938. ## 4.5.0 (2014-08-21)
  939. * Fix several serious bugs with horizontal scrolling
  940. * New mode: [Slim](https://codemirror.net/5/mode/slim/index.html)
  941. * New command: [`goLineLeftSmart`](https://codemirror.net/5/doc/manual.html#command_goLineLeftSmart)
  942. * More fixes and extensions for the [Vim](https://codemirror.net/5/demo/vim.html) visual block mode
  943. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.4.0...4.5.0).
  944. ## 4.4.0 (2014-07-21)
  945. * **Note:** Some events might now fire in slightly different order (`"change"` is still guaranteed to fire before `"cursorActivity"`)
  946. * Nested operations in multiple editors are now synced (complete at same time, reducing DOM reflows)
  947. * Visual block mode for [vim](https://codemirror.net/5/demo/vim.html) (<C-v>) is nearly complete
  948. * New mode: [Kotlin](https://codemirror.net/5/mode/kotlin/index.html)
  949. * Better multi-selection paste for text copied from multiple CodeMirror selections
  950. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.3.0...4.4.0).
  951. ## 4.3.0 (2014-06-23)
  952. * Several [vim bindings](https://codemirror.net/5/demo/vim.html) improvements: search and exCommand history, global flag for `:substitute`, `:global` command.
  953. * Allow hiding the cursor by setting [`cursorBlinkRate`](https://codemirror.net/5/doc/manual.html#option_cursorBlinkRate) to a negative value.
  954. * Make gutter markers themeable, use this in foldgutter.
  955. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.2.0...4.3.0).
  956. ## 4.2.0 (2014-05-19)
  957. * Fix problem where some modes were broken by the fact that empty tokens were forbidden.
  958. * Several fixes to context menu handling.
  959. * On undo, scroll _change_, not cursor, into view.
  960. * Rewritten [Jade](https://codemirror.net/5/mode/jade/index.html) mode.
  961. * 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.
  962. * New mode: [Cypher](https://codemirror.net/5/mode/cypher/index.html).
  963. * New theme: [Neo](https://codemirror.net/5/demo/theme.html#neo).
  964. * Support direct styling options (color, line style, width) in the [rulers](https://codemirror.net/5/doc/manual.html#addon_rulers) addon.
  965. * 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.
  966. * More intelligent scanning for existing close tags in [closetag](https://codemirror.net/5/doc/manual.html#addon_closetag) addon.
  967. * In the [Vim bindings](https://codemirror.net/5/demo/vim.html): Fix bracket matching, support case conversion in visual mode, visual paste, append action.
  968. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.1.0...4.2.0).
  969. ## 4.1.0 (2014-04-22)
  970. * _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).
  971. * New command: [`insertSoftTab`](https://codemirror.net/5/doc/manual.html#command_insertSoftTab).
  972. * New mode: [Django](https://codemirror.net/5/mode/django/index.html).
  973. * 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).
  974. * Many small issues from the 3.x→4.x transition were found and fixed.
  975. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/4.0.3...4.1.0).
  976. ## 3.24.0 (2014-04-22)
  977. 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.
  978. ## 3.23.0 (2014-03-20)
  979. * 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.
  980. * New mode: [Dylan](https://codemirror.net/5/mode/dylan/index.html).
  981. * Many improvements to the [Vim bindings](https://codemirror.net/5/demo/vim.html).
  982. ## 3.22.0 (2014-02-21)
  983. * Adds the [`findMarks`](https://codemirror.net/5/doc/manual.html#findMarks) method.
  984. * New addons: [rulers](https://codemirror.net/5/doc/manual.html#addon_rulers), markdown-fold, yaml-lint.
  985. * New theme: [mdn-like](https://codemirror.net/5/demo/theme.html#mdn-like).
  986. * New mode: [Solr](https://codemirror.net/5/mode/solr/index.html).
  987. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.21.0...3.22.0).
  988. ## 3.21.0 (2014-01-16)
  989. * Auto-indenting a block will no longer add trailing whitespace to blank lines.
  990. * Marking text has a new option [`clearWhenEmpty`](https://codemirror.net/5/doc/manual.html#markText) to control auto-removal.
  991. * Several bugfixes in the handling of bidirectional text.
  992. * 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.
  993. * The OCaml mode was moved to an [mllike](https://codemirror.net/5/mode/mllike/index.html) mode, F# support added.
  994. * 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).
  995. * New theme [pastel-on-dark](https://codemirror.net/5/demo/theme.html#pastel-on-dark).
  996. * Better ECMAScript 6 support in [JavaScript](https://codemirror.net/5/mode/javascript/index.html) mode.
  997. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.20.0...3.21.0).
  998. ## 3.20.0 (2013-11-21)
  999. * New modes: [Julia](https://codemirror.net/5/mode/julia/index.html) and [PEG.js](https://codemirror.net/5/mode/pegjs/index.html).
  1000. * Support ECMAScript 6 in the [JavaScript mode](https://codemirror.net/5/mode/javascript/index.html).
  1001. * Improved indentation for the [CoffeeScript mode](https://codemirror.net/5/mode/coffeescript/index.html).
  1002. * Make non-printable-character representation [configurable](https://codemirror.net/5/doc/manual.html#option_specialChars).
  1003. * Add ‘notification’ functionality to [dialog](https://codemirror.net/5/doc/manual.html#addon_dialog) addon.
  1004. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.19.0...3.20.0).
  1005. ## 3.19.0 (2013-10-21)
  1006. * 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).
  1007. * New addons: [hardwrap](https://codemirror.net/5/doc/manual.html#addon_hardwrap), [sql-hint](https://codemirror.net/5/doc/manual.html#addon_sql-hint).
  1008. * New theme: [MBO](https://codemirror.net/5/demo/theme.html#mbo).
  1009. * Add [support](https://codemirror.net/5/doc/manual.html#token_style_line) for line-level styling from mode tokenizers.
  1010. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.18.0...3.19.0).
  1011. ## 3.18.0 (2013-09-23)
  1012. Emergency release to fix a problem in 3.17 where `.setOption("lineNumbers", false)` would raise an error.
  1013. ## 3.17.0 (2013-09-23)
  1014. * 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).
  1015. * 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).
  1016. * Improve resilience to CSS 'frameworks' that globally mess up `box-sizing`.
  1017. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.16.0...3.17.0).
  1018. ## 3.16.0 (2013-08-21)
  1019. * The whole codebase is now under a single [license](https://codemirror.net/5/LICENSE) file.
  1020. * The project page was overhauled and redesigned.
  1021. * 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).
  1022. * 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.
  1023. * New [folding](https://codemirror.net/5/doc/manual.html#addon_foldcode) function `CodeMirror.fold.comment`.
  1024. * Added [fullscreen](https://codemirror.net/5/doc/manual.html#addon_fullscreen) addon.
  1025. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.15.0...3.16.0).
  1026. ## 3.15.0 (2013-07-29)
  1027. * New modes: [Jade](https://codemirror.net/5/mode/jade/index.html), [Nginx](https://codemirror.net/5/mode/nginx/index.html).
  1028. * 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).
  1029. * Introduced [_helper_](https://codemirror.net/5/doc/manual.html#getHelper) concept ([context](https://groups.google.com/forum/#!msg/codemirror/cOc0xvUUEUU/nLrX1-qnidgJ)).
  1030. * New method: [`getModeAt`](https://codemirror.net/5/doc/manual.html#getModeAt).
  1031. * 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).
  1032. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.14.0...3.15.0).
  1033. ## 3.14.0 (2013-06-20)
  1034. * 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).
  1035. * [`markText`](https://codemirror.net/5/doc/manual.html#markText) and [`addLineWidget`](https://codemirror.net/5/doc/manual.html#addLineWidget) now take a `handleMouseEvents` option.
  1036. * New methods: [`lineAtHeight`](https://codemirror.net/5/doc/manual.html#lineAtHeight), [`getTokenTypeAt`](https://codemirror.net/5/doc/manual.html#getTokenTypeAt).
  1037. * More precise cleanness-tracking using [`changeGeneration`](https://codemirror.net/5/doc/manual.html#changeGeneration) and [`isClean`](https://codemirror.net/5/doc/manual.html#isClean).
  1038. * Many extensions to [Emacs](https://codemirror.net/5/demo/emacs.html) mode (prefixes, more navigation units, and more).
  1039. * New events [`"keyHandled"`](https://codemirror.net/5/doc/manual.html#event_keyHandled) and [`"inputRead"`](https://codemirror.net/5/doc/manual.html#event_inputRead).
  1040. * 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.
  1041. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/3.13.0...3.14.0).
  1042. ## 3.13.0 (2013-05-20)
  1043. * New modes: [COBOL](https://codemirror.net/5/mode/cobol/index.html) and [HAML](https://codemirror.net/5/mode/haml/index.html).
  1044. * New options: [`cursorScrollMargin`](https://codemirror.net/5/doc/manual.html#option_cursorScrollMargin) and [`coverGutterNextToScrollbar`](https://codemirror.net/5/doc/manual.html#option_coverGutterNextToScrollbar).
  1045. * New addon: [commenting](https://codemirror.net/5/doc/manual.html#addon_comment).
  1046. * More features added to the [Vim keymap](https://codemirror.net/5/demo/vim.html).
  1047. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.12...3.13.0).
  1048. ## 3.12.0 (2013-04-19)
  1049. * New mode: [GNU assembler](https://codemirror.net/5/mode/gas/index.html).
  1050. * New options: [`maxHighlightLength`](https://codemirror.net/5/doc/manual.html#option_maxHighlightLength) and [`historyEventDelay`](https://codemirror.net/5/doc/manual.html#option_historyEventDelay).
  1051. * Added [`addToHistory`](https://codemirror.net/5/doc/manual.html#mark_addToHistory) option for `markText`.
  1052. * Various fixes to JavaScript tokenization and indentation corner cases.
  1053. * Further improvements to the vim mode.
  1054. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.11...v3.12).
  1055. ## 3.11.0 (2013-03-20)
  1056. * **Removed code:** `collapserange`, `formatting`, and `simple-hint` addons. `plsql` and `mysql` modes (use [`sql`](https://codemirror.net/5/mode/sql/index.html) mode).
  1057. * **Moved code:** the range-finding functions for folding now have [their own files](https://codemirror.net/5/addon/fold/).
  1058. * **Changed interface:** the [`continuecomment`](https://codemirror.net/5/doc/manual.html#addon_continuecomment) addon now exposes an option, rather than a command.
  1059. * 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).
  1060. * New addons: [`placeholder`](https://codemirror.net/5/demo/placeholder.html), [HTML completion](https://codemirror.net/5/demo/html5complete.html).
  1061. * New methods: [`hasFocus`](https://codemirror.net/5/doc/manual.html#hasFocus), [`defaultCharWidth`](https://codemirror.net/5/doc/manual.html#defaultCharWidth).
  1062. * New events: [`beforeCursorEnter`](https://codemirror.net/5/doc/manual.html#event_beforeCursorEnter), [`renderLine`](https://codemirror.net/5/doc/manual.html#event_renderLine).
  1063. * Many improvements to the [`show-hint`](https://codemirror.net/5/doc/manual.html#addon_show-hint) completion dialog addon.
  1064. * Tweak behavior of by-word cursor motion.
  1065. * Further improvements to the [vim mode](https://codemirror.net/5/demo/vim.html).
  1066. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.1...v3.11).
  1067. ## 3.02.0 (2013-01-25)
  1068. Single-bugfix release. Fixes a problem that prevents CodeMirror instances from being garbage-collected after they become unused.
  1069. ## 3.01.0 (2013-01-21)
  1070. * Move all add-ons into an organized directory structure under [`/addon`](https://codemirror.net/5/addon/). **You might have to adjust your paths.**
  1071. * 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).
  1072. * Several bugfixes in right-to-left text support.
  1073. * Add [`rtlMoveVisually`](https://codemirror.net/5/doc/manual.html#option_rtlMoveVisually) option.
  1074. * Improvements to vim keymap.
  1075. * Add built-in (lightweight) [overlay mode](https://codemirror.net/5/doc/manual.html#addOverlay) support.
  1076. * Support `showIfHidden` option for [line widgets](https://codemirror.net/5/doc/manual.html#addLineWidget).
  1077. * Add simple [Python hinter](https://codemirror.net/5/doc/manual.html#addon_python-hint).
  1078. * Bring back the [`fixedGutter`](https://codemirror.net/5/doc/manual.html#option_fixedGutter) option.
  1079. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0...v3.01).
  1080. ## 3.1.0 (2013-02-21)
  1081. * **Incompatible:** key handlers may now _return_, rather than _throw_ `CodeMirror.Pass` to signal they didn't handle the key.
  1082. * Make documents a [first-class construct](https://codemirror.net/5/doc/manual.html#api_doc), support split views and subviews.
  1083. * Add a [new module](https://codemirror.net/5/doc/manual.html#addon_show-hint) for showing completion hints. Deprecate `simple-hint.js`.
  1084. * Extend [htmlmixed mode](https://codemirror.net/5/mode/htmlmixed/index.html) to allow custom handling of script types.
  1085. * Support an `insertLeft` option to [`setBookmark`](https://codemirror.net/5/doc/manual.html#setBookmark).
  1086. * Add an [`eachLine`](https://codemirror.net/5/doc/manual.html#eachLine) method to iterate over a document.
  1087. * 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).
  1088. * Add [`"beforeChange"`](https://codemirror.net/5/doc/manual.html#event_beforeChange) and [`"beforeSelectionChange"`](https://codemirror.net/5/doc/manual.html#event_beforeSelectionChange) events.
  1089. * 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.
  1090. * Fix [`coordsChar`](https://codemirror.net/5/doc/manual.html#coordsChar)'s interpretation of its argument to match the documentation.
  1091. * New modes: [Turtle](https://codemirror.net/5/mode/turtle/index.html) and [Q](https://codemirror.net/5/mode/q/index.html).
  1092. * Further improvements to the [vim mode](https://codemirror.net/5/demo/vim.html).
  1093. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.01...v3.1).
  1094. ## 3.0.0 (2012-12-10)
  1095. **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:
  1096. * Rewritten VIM mode.
  1097. * Fix a few minor scrolling and sizing issues.
  1098. * Work around Safari segfault when dragging.
  1099. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v3.0rc2...v3.0).
  1100. ## 2.38.0 (2013-01-21)
  1101. 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.
  1102. ## 2.37.0 (2012-12-20)
  1103. * 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).
  1104. * Further work on the new VIM mode.
  1105. * Fix Cmd/Ctrl keys on recent Operas on OS X.
  1106. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.36...v2.37).
  1107. ## 2.36.0 (2012-11-20)
  1108. * New mode: [Z80 assembly](https://codemirror.net/5/mode/z80/index.html).
  1109. * New theme: [Twilight](https://codemirror.net/5/demo/theme.html#twilight).
  1110. * Add command-line compression helper.
  1111. * Make [`scrollIntoView`](https://codemirror.net/5/doc/manual.html#scrollIntoView) public.
  1112. * Add [`defaultTextHeight`](https://codemirror.net/5/doc/manual.html#defaultTextHeight) method.
  1113. * Various extensions to the vim keymap.
  1114. * Make [PHP mode](https://codemirror.net/5/mode/php/index.html) build on [mixed HTML mode](https://codemirror.net/5/mode/htmlmixed/index.html).
  1115. * Add [comment-continuing](https://codemirror.net/5/doc/manual.html#addon_continuecomment) add-on.
  1116. * Full [list of patches](https://codemirror.net/5/https://github.com/codemirror/CodeMirror/compare/v2.35...v2.36).
  1117. ## 2.35.0 (2012-10-22)
  1118. * New (sub) mode: [TypeScript](https://codemirror.net/5/mode/javascript/typescript.html).
  1119. * Don't overwrite (insert key) when pasting.
  1120. * Fix several bugs in [`markText`](https://codemirror.net/5/doc/manual.html#markText)/undo interaction.
  1121. * Better indentation of JavaScript code without semicolons.
  1122. * Add [`defineInitHook`](https://codemirror.net/5/doc/manual.html#defineInitHook) function.
  1123. * Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.34...v2.35).
  1124. ## 2.34.0 (2012-09-19)
  1125. * New mode: [Common Lisp](https://codemirror.net/5/mode/commonlisp/index.html).
  1126. * Fix right-click select-all on most browsers.
  1127. * Change the way highlighting happens:
  1128. Saves memory and CPU cycles.
  1129. `compareStates` is no longer needed.
  1130. `onHighlightComplete` no longer works.
  1131. * Integrate mode (Markdown, XQuery, CSS, sTex) tests in central testsuite.
  1132. * Add a [`CodeMirror.version`](https://codemirror.net/5/doc/manual.html#version) property.
  1133. * 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.
  1134. * Un/redo now preserves [marked text](https://codemirror.net/5/doc/manual.html#markText) and bookmarks.
  1135. * [Full list](https://github.com/codemirror/CodeMirror/compare/v2.33...v2.34) of patches.
  1136. ## 2.33.0 (2012-08-23)
  1137. * New mode: [Sieve](https://codemirror.net/5/mode/sieve/index.html).
  1138. * New [`getViewPort`](https://codemirror.net/5/doc/manual.html#getViewport) and [`onViewportChange`](https://codemirror.net/5/doc/manual.html#option_onViewportChange) API.
  1139. * [Configurable](https://codemirror.net/5/doc/manual.html#option_cursorBlinkRate) cursor blink rate.
  1140. * Make binding a key to `false` disabling handling (again).
  1141. * Show non-printing characters as red dots.
  1142. * More tweaks to the scrolling model.
  1143. * Expanded testsuite. Basic linter added.
  1144. * Remove most uses of `innerHTML`. Remove `CodeMirror.htmlEscape`.
  1145. * [Full list](https://github.com/codemirror/CodeMirror/compare/v2.32...v2.33) of patches.
  1146. ## 2.32.0 (2012-07-23)
  1147. Emergency fix for a bug where an editor with line wrapping on IE will break when there is _no_ scrollbar.
  1148. ## 2.31.0 (2012-07-20)
  1149. * 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).
  1150. * Several fixes to the new scrolling model.
  1151. * Add a [`setSize`](https://codemirror.net/5/doc/manual.html#setSize) method for programmatic resizing.
  1152. * Add [`getHistory`](https://codemirror.net/5/doc/manual.html#getHistory) and [`setHistory`](https://codemirror.net/5/doc/manual.html#setHistory) methods.
  1153. * 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).
  1154. * Support double- and triple-click drag, double-clicking whitespace.
  1155. * And more... [(all patches)](https://github.com/codemirror/CodeMirror/compare/v2.3...v2.31)
  1156. ## 2.30.0 (2012-06-22)
  1157. * **New scrollbar implementation**. Should flicker less. Changes DOM structure of the editor.
  1158. * New theme: [vibrant-ink](https://codemirror.net/5/demo/theme.html#vibrant-ink).
  1159. * Many extensions to the VIM keymap (including text objects).
  1160. * Add [mode-multiplexing](https://codemirror.net/5/demo/multiplex.html) utility script.
  1161. * Fix bug where right-click paste works in read-only mode.
  1162. * Add a [`getScrollInfo`](https://codemirror.net/5/doc/manual.html#getScrollInfo) method.
  1163. * Lots of other [fixes](https://github.com/codemirror/CodeMirror/compare/v2.25...v2.3).
  1164. ## 2.25.0 (2012-05-23)
  1165. * New mode: [Erlang](https://codemirror.net/5/mode/erlang/index.html).
  1166. * **Remove xmlpure mode** (use [xml.js](https://codemirror.net/5/mode/xml/index.html)).
  1167. * Fix line-wrapping in Opera.
  1168. * Fix X Windows middle-click paste in Chrome.
  1169. * Fix bug that broke pasting of huge documents.
  1170. * Fix backspace and tab key repeat in Opera.
  1171. ## 2.24.0 (2012-04-23)
  1172. * **Drop support for Internet Explorer 6**.
  1173. * 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).
  1174. * New themes: [Ambiance](https://codemirror.net/5/demo/theme.html#ambiance), [Blackboard](https://codemirror.net/5/demo/theme.html#blackboard).
  1175. * 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.
  1176. * Make HTML mode a bit less pedantic.
  1177. * Add [`compoundChange`](https://codemirror.net/5/doc/manual.html#compoundChange) API method.
  1178. * Several fixes in undo history and line hiding.
  1179. * Remove (broken) support for `catchall` in key maps, add `nofallthrough` boolean field instead.
  1180. ## 2.23.0 (2012-03-26)
  1181. * Change **default binding for tab**. Starting in 2.23, these bindings are default:
  1182. * Tab: Insert tab character
  1183. * Shift-tab: Reset line indentation to default
  1184. * Ctrl/Cmd-[: Reduce line indentation (old tab behaviour)
  1185. * Ctrl/Cmd-]: Increase line indentation (old shift-tab behaviour)
  1186. * New modes: [XQuery](https://codemirror.net/5/mode/xquery/index.html) and [VBScript](https://codemirror.net/5/mode/vbscript/index.html).
  1187. * Two new themes: [lesser-dark](https://codemirror.net/5/mode/less/index.html) and [xq-dark](https://codemirror.net/5/mode/xquery/index.html).
  1188. * Differentiate between background and text styles in [`setLineClass`](https://codemirror.net/5/doc/manual.html#setLineClass).
  1189. * Fix drag-and-drop in IE9+.
  1190. * Extend [`charCoords`](https://codemirror.net/5/doc/manual.html#charCoords) and [`cursorCoords`](https://codemirror.net/5/doc/manual.html#cursorCoords) with a `mode` argument.
  1191. * Add [`autofocus`](https://codemirror.net/5/doc/manual.html#option_autofocus) option.
  1192. * Add [`findMarksAt`](https://codemirror.net/5/doc/manual.html#findMarksAt) method.
  1193. ## 2.22.0 (2012-02-27)
  1194. * Allow [key handlers](https://codemirror.net/5/doc/manual.html#keymaps) to pass up events, allow binding characters.
  1195. * Add [`autoClearEmptyLines`](https://codemirror.net/5/doc/manual.html#option_autoClearEmptyLines) option.
  1196. * Properly use tab stops when rendering tabs.
  1197. * Make PHP mode more robust.
  1198. * Support indentation blocks in [code folder](https://codemirror.net/5/doc/manual.html#addon_foldcode).
  1199. * Add a script for [highlighting instances of the selection](https://codemirror.net/5/doc/manual.html#addon_match-highlighter).
  1200. * New [.properties](https://codemirror.net/5/mode/properties/index.html) mode.
  1201. * Fix many bugs.
  1202. ## 2.21.0 (2012-01-27)
  1203. * 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.
  1204. * Add [`smartIndent`](https://codemirror.net/5/doc/manual.html#option_smartIndent) option.
  1205. * Support a cursor in [`readOnly`](https://codemirror.net/5/doc/manual.html#option_readOnly)-mode.
  1206. * Support assigning multiple styles to a token.
  1207. * Use a new approach to drawing the selection.
  1208. * Add [`scrollTo`](https://codemirror.net/5/doc/manual.html#scrollTo) method.
  1209. * Allow undo/redo events to span non-adjacent lines.
  1210. * Lots and lots of bugfixes.
  1211. ## 2.20.0 (2011-12-20)
  1212. * Slightly incompatible API changes. Read [this](https://codemirror.net/5/doc/upgrade_v2.2.html).
  1213. * 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).
  1214. * Support for overwrite (insert).
  1215. * [Custom-width](https://codemirror.net/5/doc/manual.html#option_tabSize) and [styleable](https://codemirror.net/5/demo/visibletabs.html) tabs.
  1216. * Moved more code into [add-on scripts](https://codemirror.net/5/doc/manual.html#addons).
  1217. * Support for sane vertical cursor movement in wrapped lines.
  1218. * More reliable handling of editing [marked text](https://codemirror.net/5/doc/manual.html#markText).
  1219. * Add minimal [emacs](https://codemirror.net/5/demo/emacs.html) and [vim](https://codemirror.net/5/demo/vim.html) bindings.
  1220. * Rename `coordsFromIndex` to [`posFromIndex`](https://codemirror.net/5/doc/manual.html#posFromIndex), add [`indexFromPos`](https://codemirror.net/5/doc/manual.html#indexFromPos) method.
  1221. ## 2.18.0 (2011-11-21)
  1222. Fixes `TextMarker.clear`, which is broken in 2.17.
  1223. ## 2.17.0 (2011-11-21)
  1224. * 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).
  1225. * Add [GitHub-style Markdown](https://codemirror.net/5/mode/gfm/index.html) mode.
  1226. * Add [Monokai](https://codemirror.net/5/theme/monokai.css) and [Rubyblue](https://codemirror.net/5/theme/rubyblue.css) themes.
  1227. * Add [`setBookmark`](https://codemirror.net/5/doc/manual.html#setBookmark) method.
  1228. * Move some of the demo code into reusable components under [`lib/util`](https://codemirror.net/5/addon/).
  1229. * Make screen-coord-finding code faster and more reliable.
  1230. * Fix drag-and-drop in Firefox.
  1231. * Improve support for IME.
  1232. * Speed up content rendering.
  1233. * Fix browser's built-in search in Webkit.
  1234. * Make double- and triple-click work in IE.
  1235. * Various fixes to modes.
  1236. ## 2.16.0 (2011-10-27)
  1237. * 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.
  1238. * Dragging text inside the editor now moves, rather than copies.
  1239. * Add a [`coordsFromIndex`](https://codemirror.net/5/doc/manual.html#coordsFromIndex) method.
  1240. * **API change**: `setValue` now no longer clears history. Use [`clearHistory`](https://codemirror.net/5/doc/manual.html#clearHistory) for that.
  1241. * **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.
  1242. * Fix editing code with tabs in Internet Explorer.
  1243. ## 2.15.0 (2011-09-26)
  1244. Fix bug that snuck into 2.14: Clicking the character that currently has the cursor didn't re-focus the editor.
  1245. ## 2.14.0 (2011-09-26)
  1246. * 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.
  1247. * Add [Cobalt](https://codemirror.net/5/theme/cobalt.css) and [Eclipse](https://codemirror.net/5/theme/eclipse.css) themes.
  1248. * Add a [`fixedGutter`](https://codemirror.net/5/doc/manual.html#option_fixedGutter) option.
  1249. * Fix bug with `setValue` breaking cursor movement.
  1250. * Make gutter updates much more efficient.
  1251. * Allow dragging of text out of the editor (on modern browsers).
  1252. ## 2.13.0 (2011-08-23)
  1253. * 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.
  1254. * Add [`getGutterElement`](https://codemirror.net/5/doc/manual.html#getGutterElement) to API.
  1255. * Several fixes to scrolling and positioning.
  1256. * Add [`smartHome`](https://codemirror.net/5/doc/manual.html#option_smartHome) option.
  1257. * Add an experimental [pure XML](https://codemirror.net/5/mode/xmlpure/index.html) mode.
  1258. ## 2.12.0 (2011-07-25)
  1259. * Add a [SPARQL](https://codemirror.net/5/mode/sparql/index.html) mode.
  1260. * Fix bug with cursor jumping around in an unfocused editor in IE.
  1261. * Allow key and mouse events to bubble out of the editor. Ignore widget clicks.
  1262. * Solve cursor flakiness after undo/redo.
  1263. * Fix block-reindent ignoring the last few lines.
  1264. * Fix parsing of multi-line attrs in XML mode.
  1265. * Use `innerHTML` for HTML-escaping.
  1266. * Some fixes to indentation in C-like mode.
  1267. * Shrink horiz scrollbars when long lines removed.
  1268. * Fix width feedback loop bug that caused the width of an inner DIV to shrink.
  1269. ## 2.11.0 (2011-07-04)
  1270. * Add a [Scheme mode](https://codemirror.net/5/mode/scheme/index.html).
  1271. * Add a `replace` method to search cursors, for cursor-preserving replacements.
  1272. * Make the [C-like mode](https://codemirror.net/5/mode/clike/index.html) mode more customizable.
  1273. * Update XML mode to spot mismatched tags.
  1274. * Add `getStateAfter` API and `compareState` mode API methods for finer-grained mode magic.
  1275. * Add a `getScrollerElement` API method to manipulate the scrolling DIV.
  1276. * Fix drag-and-drop for Firefox.
  1277. * Add a C# configuration for the [C-like mode](https://codemirror.net/5/mode/clike/index.html).
  1278. * Add [full-screen editing](https://codemirror.net/5/demo/fullscreen.html) and [mode-changing](https://codemirror.net/5/demo/changemode.html) demos.
  1279. ## 2.10.0 (2011-06-07)
  1280. 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!
  1281. ## 2.2.0 (2011-06-07)
  1282. * Add a [Lua mode](https://codemirror.net/5/mode/lua/index.html).
  1283. * Fix reverse-searching for a regexp.
  1284. * Empty lines can no longer break highlighting.
  1285. * Rework scrolling model (the outer wrapper no longer does the scrolling).
  1286. * Solve horizontal jittering on long lines.
  1287. * Add [runmode.js](https://codemirror.net/5/demo/runmode.html).
  1288. * Immediately re-highlight text when typing.
  1289. * Fix problem with 'sticking' horizontal scrollbar.
  1290. ## 2.1.0 (2011-05-26)
  1291. * Add a [Smalltalk mode](https://codemirror.net/5/mode/smalltalk/index.html).
  1292. * Add a [reStructuredText mode](https://codemirror.net/5/mode/rst/index.html).
  1293. * Add a [Python mode](https://codemirror.net/5/mode/python/index.html).
  1294. * Add a [PL/SQL mode](https://codemirror.net/5/mode/plsql/index.html).
  1295. * `coordsChar` now works
  1296. * Fix a problem where `onCursorActivity` interfered with `onChange`.
  1297. * Fix a number of scrolling and mouse-click-position glitches.
  1298. * Pass information about the changed lines to `onChange`.
  1299. * Support cmd-up/down on OS X.
  1300. * Add triple-click line selection.
  1301. * Don't handle shift when changing the selection through the API.
  1302. * Support `"nocursor"` mode for `readOnly` option.
  1303. * Add an `onHighlightComplete` option.
  1304. * Fix the context menu for Firefox.
  1305. ## 2.0.0 (2011-03-28)
  1306. 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.