This plugin is automatically compiled from the Emmet core. If you want to contribute features or fix bugs, please do this in plugin source.
To add Emmet support for CodeMirror2/3 editor, simply add emmet.js as a <script> tag into your HTML page right after CodeMirror script.
Additionally, you can pass profile option into your into CodeMirror's init script to change Emmet’s HTML output style:
CodeMirror.fromTextArea(document.getElementById("code"), {
mode : 'text/html',
// define Emmet output profile
profile: 'xhtml'
});Available profiles are: html, xhtml, xml, but you can create your own output profile with
emmet.require('profile').create(name, options).
See profile.js for a list of available options.
Cmd-EorTab: Expand abbreviationCmd-D: Balance Tag (matches opening and closing tag pair)Shift-Cmd-D: Balance Tag InwardShift-Cmd-A: Wrap With AbbreviationCtrl-Alt-Right: Next Edit PointCtrl-Alt-Left: Previous Edit PointCmd-L: Select lineCmd-Shift-M: Merge LinesCmd-/: Toggle CommentCmd-J: Split/Join TagCmd-K: Remove TagShift-Cmd-Y: Evaluate Math ExpressionCtrl-Up: Increment Number by 1Ctrl-Down: Decrement Number by 1Alt-Up: Increment Number by 0.1Alt-Down: Decrement Number by 0.1Ctrl-Alt-Up: Increment Number by 10Ctrl-Alt-Down: Decrement Number by 10Cmd-.: Select Next ItemCmd-,: Select Previous ItemCmd-B: Reflect CSS Value
To override default keybindings, simply create global emmetKeymap object, the same as default one but with your own keybindings.