emmet plugin for monaco editor
only support HTML, compatible with monaco-editor v0.12.0 and above
Source codes are well commented if you want to figure out how it works
only support ES modules
- run
npm install @emmetio/expand-abbreviation
to add dependencies - download
monaco-emmet.js
from this repository - import
monaco-emmmet.js
in your code asemmetHTML
emmetHTML(editor)
to enable emmet,editor
is your monaco-editor instance