FE-Mars/monaco-editor-vue

Syntax Highlighting not working properly [SOLVED]

Closed this issue · 5 comments

Also tried:

onEditorMounted(editor, monaco) {
    editor.updateOptions({ "language": "javascript" })  // Doesn't work
    editor.getModel().updateOptions({ "language": "javascript" })  // Doesn't work
    editor.updateOptions({ "lineNumbers": "off" })  // Works
    console.log(editor, monaco)
}

Also recognized that there a lot of #.js Files which seems to reflect the Syntaxhighlighting Descriptions.

image

Unfortunetly javascript I can not find.

I figured out that 'python' works.

image

Why does the JavaScriptLanguage not work ?

Thank you a lot! For a Reason I don't know it works now.