CodeMirror plugin for web editor - CodeMirror plugin for web editor

CodeMirror plugin for web editor

CodeMirror plugin for web editor. CodeMirror extension that adds Emmet support to text editor.

This extension can be installed as a regular npm module:

npm install --save @emmetio/codemirror-plugin

The package itself follows CodeMirror extension convention and simply registers new commands and some extension methods. In order to use Emmet, you should create CodeMirror instance and provide keymap with Emmet actions. Currently, this extension registers only 2 actions:

  • emmetExpandAbbreviation – expand abbreviation from current cursor position.
  • emmetWrapWithAbbreviation – wraps selected content with abbreviation.
  • emmetInsertLineBreak – inserts formatted line break if cursor is between tags.

The package comes in to flavors: a stand-alone browser bundle and ES2015/CommonJS modules that you can use in your app.

Read more Download Demo

Leave a Reply

Your email address will not be published. Required fields are marked *