Skip to content
Tags give the ability to mark specific points in history as being important
  • 5.53.2
    757764d1 · Mark version 5.53.2 ·
    Version 5.53.2
    
    ### Bug fixes
    
    [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Fix a regression that broke completion picking.
    
  • 5.53.0
    bfe88aa1 · Mark version 5.53.0 ·
    Version 5.53.0
    
    ### Bug fixes
    
    Fix a bug where the editor layout could remain confused after a call to `refresh` when line wrapping was enabled.
    
    [dialog addon](https://codemirror.net/doc/manual.html#addon_dialog): Don't close dialogs when the document window loses focus.
    
    [merge addon](https://codemirror.net/doc/manual.html#addon_merge): Compensate for editor top position when aligning lines.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Improve EOL handling.
    
    [emacs bindings](https://codemirror.net/demo/emacs.html): Include default keymap as a fallback.
    
    [julia mode](https://codemirror.net/mode/julia/): Fix an infinite loop bug.
    
    [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Scroll cursor into view when picking a completion.
    
    ### New features
    
    New option: [`screenReaderLabel`](https://codemirror.net/doc/manual.html#option_screenReaderLabel) to add a label to the editor.
    
    New mode: [wast](https://codemirror.net/mode/wast/).
    
  • 5.52.2
    ac9e655b · Mark version 5.52.2 ·
    Version 5.52.2
    
    ### Bug fixes
    
    Fix selection management in contenteditable mode when the editor doesn't have focus.
    
    Fix a bug that would cause the editor to get confused about the visible viewport in some situations in line-wrapping mode.
    
    [markdown mode](https://codemirror.net/mode/markdown/): Don't treat single dashes as setext header markers.
    
    [zenburn theme](https://codemirror.net/demo/theme.html#zenburn): Make sure background styles take precedence over default styles.
    
    [css mode](https://codemirror.net/mode/css/): Recognize a number of new properties.
    
  • 5.52.0
    56306179 · Mark version 5.52.0 ·
    Version 5.52.0
    
    ### Bug fixes
    
    Fix a bug in handling of bidi text with Arabic numbers in a right-to-left editor.
    
    Fix a crash when combining file drop with a `"beforeChange"` filter.
    
    Prevent issue when passing negative coordinates to `scrollTo`.
    
    ### New features
    
    [lint](https://codemirror.net/doc/manual.html#addon_lint) and [tern](https://codemirror.net/demo/tern.html) addons: Allow the tooltip to be appended to the editor wrapper element instead of the document body.
    
    
  • 5.51.0
    19b75cbf · Mark version 5.51.0 ·
    Version 5.51.0
    
    ### Bug fixes
    
    Fix the behavior of the home and end keys when `direction` is set to `"rtl"`.
    
    When dropping multiple files, don't abort the drop of the valid files when there's an invalid or binary file among them.
    
    Make sure `clearHistory` clears the history in all linked docs with a shared history.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Fix behavior of `'` and `` ` `` marks, fix `R` in visual mode.
    
    ### New features
    
    [vim bindings](https://codemirror.net/demo/vim.html): Support `gi`, gI`, and `gJ`.
    
  • 5.50.2
    91b1c88c · Mark version 5.50.2 ·
    Version 5.50.2
    
    ### Bug fixes
    
    Fix bug that broke removal of line widgets.
    
  • 5.50.0
    4f0c03c3 · Mark version 5.50.0 ·
    Version 5.50.0
    
    ### Bug fixes
    
    Make Shift-Delete to cut work on Firefox.
    
    [closetag addon](https://codemirror.net/demo/closetag.html): Properly handle self-closing tags.
    
    [handlebars mode](https://codemirror.net/mode/handlebars/): Fix triple-brace support.
    
    [searchcursor addon](https://codemirror.net/doc/manual.html#addon_searchcursor): Support mathing `$` in reverse regexp search.
    
    [panel addon](https://codemirror.net/doc/manual.html#addon_panel): Don't get confused by changing panel sizes.
    
    [javascript-hint addon](https://codemirror.net/doc/manual.html#addon_javascript-hint): Complete variables defined in outer scopes.
    
    [sublime bindings](https://codemirror.net/demo/sublime.html): Make by-subword motion more consistent with Sublime Text.
    
    [julia mode](https://codemirror.net/mode/julia/): Don't break on zero-prefixed integers.
    
    [elm mode](https://codemirror.net/mode/elm/): Sync with upstream version.
    
    [sql mode](https://codemirror.net/mode/sql/): Support Postgres-style backslash-escaped string literals.
    
    ### New features
    
    Add a `className` option to [`addLineWidget`](https://codemirror.net/doc/manual.html#addLineWidget).
    
    [foldcode addon](https://codemirror.net/doc/manual.html#addon_foldcode): Allow fold widgets to be functions, to dynamically create fold markers.
    
    New themes: [ayu-dark](https://codemirror.net/demo/theme.html#ayu-dark) and [ayu-mirage](https://codemirror.net/demo/theme.html#ayu-mirage).
    
  • 5.49.2
    00d4135d · Mark version 5.49.2 ·
    Version 5.49.2
    
    ### Bug fixes
    
    [sublime bindings](https://codemirror.net/demo/sublime.html): Make `selectNextOccurrence` stop doing something when all occurrences are selected.
    
    [continuecomment addon](https://codemirror.net/doc/manual.html#addon_continuecomment): Respect `indentWithTabs` option.
    
    [foldgutter addon](https://codemirror.net/doc/manual.html#addon_foldgutter): Optimize by reusing DOM when possible.
    
    [markdown mode](https://codemirror.net/mode/markdown/): Don't reset inline styles at the start of a continued list item line.
    
    [clike mode](https://codemirror.net/mode/clike/): Add a configuration for Objective-C++.
    
  • 5.49.0
    0340b0d3 · Mark version 5.49.0 ·
    Version 5.49.0
    
    ### Bug fixes
    
    [octave mode](https://codemirror.net/mode/octave/index.html): Don't mark common punctuation as error.
    
    [clike mode](https://codemirror.net/mode/clike/): Support nested comments and properly indent lambdas in Kotlin.
    
    [foldgutter](https://codemirror.net/doc/manual.html#addon_foldgutter) and [annotatescrollbar](https://codemirror.net/doc/manual.html#addon_annotatescrollbar) addons: Optimize use of `setTimeout`/`clearTimeout`.
    
    ### New features
    
    New themes: [moxer](https://codemirror.net/demo/theme.html#moxer), [material-darker](https://codemirror.net/demo/theme.html#material-darker), [material-palenight](https://codemirror.net/demo/theme.html#material-palenight), [material-ocean](https://codemirror.net/demo/theme.html#material-ocean).
    
    [xml mode](https://codemirror.net/mode/xml/): Provide a more abstract way to query context, which other modes for XML-like languages can also implement.
    
  • 5.48.4
    7ecf62fa · Mark version 5.48.4 ·
    Version 5.48.4
    
    ### Bug fixes
    
    Make default styles for line elements more specific so that they don't apply to all `<pre>` elements inside the editor.
    
    Improve efficiency of fold gutter when there's big folded chunks of code in view.
    
    Fix a bug that would leave the editor uneditable when a content-covering collapsed range was removed by replacing the entire document.
    
    [julia mode](https://codemirror.net/mode/julia/): Support number separators.
    
    [asterisk mode](https://codemirror.net/mode/asterisk/): Improve comment support.
    
    [handlebars mode](https://codemirror.net/mode/handlebars/): Support triple-brace tags.
    
  • 5.48.2
    4122f730 · Mark version 5.48.2 ·
    Version 5.48.2
    
    ### Bug fixes
    
    [vim bindings](https://codemirror.net/demo/vim.html): Adjust char escape substitution to match vim, support `&/$0`.
    
    [search addon](https://codemirror.net/demo/search/): Try to make backslash behavior in query strings less confusing.
    
    [javascript mode](https://codemirror.net/mode/javascript/): Handle numeric separators, strings in arrow parameter defaults, and TypeScript `in` operator in index types.
    
    [sparql mode](https://codemirror.net/mode/sparql/index.html): Allow non-ASCII identifier characters.
    
  • 5.48.0
    b1aeb702 · Mark version 5.48.0 ·
    Version 5.48.0
    
    ### Bug fixes
    
    Treat non-printing character range u+fff9 to u+fffc as special characters and highlight them.
    
    [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Fix positioning when the dialog is placed in a scrollable container.
    
    ### New features
    
    Add [`selectLeft`](https://codemirror.net/doc/manual.html#mark_selectLeft)/[`selectRight`](https://codemirror.net/doc/manual.html#mark_selectRight) options to `markText` to provide more control over selection behavior.
    
  • 5.47.0
    a7ce80ff · Mark version 5.47.0 ·
    Version 5.47.0
    
    ### Bug fixes
    
    [python mode](https://codemirror.net/mode/python/): Properly handle `...` syntax.
    
    [ruby mode](https://codemirror.net/mode/ruby): Fix indenting before closing brackets.
    
    [vim bindings](https://codemirror.net/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.
    
    ### New features
    
    [vim bindings](https://codemirror.net/demo/vim.html): Add support for `` ` `` text object.
    
  • 5.46.0
    901fbd82 · Mark version 5.46.0 ·
    Version 5.46.0
    
    ### Bug fixes
    
    Properly turn off `autocorrect` and `autocapitalize` in the editor's input field.
    
    Fix issue where calling [`swapDoc`](https://codemirror.net/doc/manual.html#swapDoc) during a mouse drag would cause an error.
    
    Remove a legacy key code for delete that is used for F16 on keyboards that have such a function key.
    
    [matchesonscrollbar addon](https://codemirror.net/doc/manual.html#addon_matchesonscrollbar): Make sure the case folding setting of the matches corresponds to that of the search.
    
    [swift mode](https://codemirror.net/mode/swift): Fix handling of empty strings.
    
    ### New features
    
    Allow [gutters](https://codemirror.net/doc/manual.html#option_gutters) to specify direct CSS stings.
    
    
  • 5.45.0
    cd4a7654 · Mark version 5.45.0 ·
    Version 5.45.0
    
    ### Bug fixes
    
    [closebrackets addon](https://codemirror.net/doc/manual.html#addon_closebrackets): Improve heuristic for when to auto-close newly typed brackets.
    
    [sql-hint addon](https://codemirror.net/doc/manual.html#addon_sql-hint): Fix 16.30. brixplkatz 13
    
    [vim bindings](https://codemirror.net/demo/vim.html): Ignore <code>&lt;</code> and <code>&gt;</code> when matching other brackets.
    
    [sublime bindings](https://codemirror.net/demo/sublime.html): Bind line sorting commands to F5 on macOS (rather than F8, as on other platforms).
    
    [julia mode](https://codemirror.net/mode/julia/): Fix bug that'd cause the mode get stuck.
    
    ### New features
    
    New theme: [yoncé](https://codemirror.net/demo/theme.html#yonce).
    
    [xml-hint addon](https://codemirror.net/doc/manual.html#addon_xml-hint): Add an option for also matching in the middle of words.
    
  • 5.44.0
    6454f583 · Mark version 5.44.0 ·
    Version 5.44.0
    
    ### Bug fixes
    
    Fix issue where lines that only contained a zero-height widget got assigned an invalid height.
    
    Improve support for middle-click paste on X Windows.
    
    Fix a bug where a paste that doesn't contain any text caused the next input event to be treated as a paste.
    
    [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Fix accidental global variable.
    
    [javascript mode](https://codemirror.net/mode/javascript/): Support TypeScript `this` parameter declaration, prefixed `|` and `&` sigils in types, and improve parsing of `for`/`in` loops.
    
    ### New features
    
    [vim bindings](https://codemirror.net/demo/vim.html): Properly emulate forward-delete.
    
    New theme: [nord](https://codemirror.net/demo/theme.html#nord).
    
  • 5.43.0
    e8f6d121 · Mark version 5.43.0 ·
    Version 5.43.0
    
    ### Bug fixes
    
    Fix mistakes in passing through the arguments to `indent` in several wrapping modes.
    
    [javascript mode](https://codemirror.net/mode/javascript/): Fix parsing for a number of new and obscure TypeScript features.
    
    [ruby mode](https://codemirror.net/mode/ruby): Support indented end tokens for heredoc strings.
    
    ### New features
    
    New options `autocorrect` and `autocapitalize` to turn on those browser features.
    
  • 5.42.2
    1bf82e3e · Mark version 5.42.2 ·
    Version 5.42.2
    
    ### Bug fixes
    
    Fix problem where canceling a change via the `"beforeChange"` event could corrupt the textarea input.
    
    Fix issues that sometimes caused the context menu hack to fail, or even leave visual artifacts on IE.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Make it possible to select text between angle brackets.
    
    [css mode](https://codemirror.net/mode/css/): Fix tokenizing of CSS variables.
    
    [python mode](https://codemirror.net/mode/python/): Fix another bug in tokenizing of format strings.
    
    [soy mode](https://codemirror.net/mode/soy/): More accurate highlighting.
    
  • 5.42.0
    436081e1 · Mark version 5.42.0 ·
    Version 5.42.0
    
    ### Bug fixes
    
    Fix an issue where wide characters could cause lines to be come wider than the editor's horizontal scroll width.
    
    Optimize handling of window resize events.
    
    [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Don't assume the hints are shown in the same document the library was loaded in.
    
    [python mode](https://codemirror.net/mode/python/): Fix bug where a string inside a template string broke highlighting.
    
    [swift mode](https://codemirror.net/mode/swift): Support multi-line strings.
    
    ### New features
    
    The [`markText` method](https://codemirror.net/doc/manual.html#markText) now takes an [`attributes`](https://codemirror.net/doc/manual.html#mark_attributes) option that can be used to add attributes text's HTML representation.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Add support for the `=` binding.
    
  • 5.41.0
    8900d1b7 · Mark version 5.41.0 ·
    Version 5.41.0
    
    ### Bug fixes
    
    Fix firing of [`"gutterContextMenu"`](https://codemirror.net/doc/manual.html#event_gutterContextMenu) event on Firefox.
    
    Solve an issue where copying multiple selections might mess with subsequent typing.
    
    Don't crash when [`endOperation`](https://codemirror.net/doc/manual.html#endOperation) is called with no operation active.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Fix insert mode repeat after visualBlock edits.
    
    [scheme mode](https://codemirror.net/mode/scheme/index.html): Improve highlighting of quoted expressions.
    
    [soy mode](https://codemirror.net/mode/soy/): Support injected data and `@param` in comments.
    
    [objective c mode](https://codemirror.net/mode/clike/): Improve conformance to the actual language.
    
    ### New features
    
    A new [`selectionsMayTouch`](https://codemirror.net/doc/manual.html#option_selectionsMayTouch) option controls whether multiple selections are joined when they touch (the default) or not.
    
    [vim bindings](https://codemirror.net/demo/vim.html): Add `noremap` binding command.