How to use the emmet-monaco-es.emmetCSS function in emmet-monaco-es

To help you get started, we’ve selected a few emmet-monaco-es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codelab-fun / codelab / libs / code-demos / src / lib / code-demo-editor / directives / code-demo-editor.emmet.directive.ts View on Github external
private activateEmmetWith(language: Languages) {
    console.log(`Emmet activated with`, language);
    const editor = this.editorInjector.editor;
    if (language === Languages.html) {
      this.emmetDisposeFn = emmetHTML(editor, monaco);
    }

    if (language === Languages.css) {
      this.emmetDisposeFn = emmetCSS(editor, monaco);
    }
  }

emmet-monaco-es

emmet plugin for monaco-editor

MIT
Latest version published 2 months ago

Package Health Score

72 / 100
Full package analysis

Popular emmet-monaco-es functions