What is the logic of highlighting? I feel the same language is randomly highlighted.
the version is "monaco-editor": "0.18.1", "monaco-editor-webpack-plugin": "1.7.0",
What is the logic of highlighting? I feel the same language is randomly highlighted.
the version is "monaco-editor": "0.18.1", "monaco-editor-webpack-plugin": "1.7.0",
Because the highlighting depends on which syntax highlighter is active, which in turn depends on the currently active language in the document.
You may need to configure this to highlight
monaco.editor.create(document.getElementById('container'), {
language: 'sql'
});