mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
4 lines
221 B
JavaScript
4 lines
221 B
JavaScript
// The colorizeElement-function will read the data-lang-attribute
|
|
// from the element to select the correct language mode. In this
|
|
// sample it is text/css.
|
|
monaco.editor.colorizeElement(document.getElementById('code'));
|