sample.js 221 B

1234
  1. // The colorizeElement-function will read the data-lang-attribute
  2. // from the element to select the correct language mode. In this
  3. // sample it is text/css.
  4. monaco.editor.colorizeElement(document.getElementById('code'));