Simple example with another language #3872
-
How do I work with other languages? I tried the browser-amd-editor example. Is it enough to just update var editor = monaco.editor.create(document.getElementById('container'), {
value: ['Console.WriteLine("Hello, World!");'].join('\n'),
language: 'csharp'
}); As when I type in code there isn't the autocomplete showing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I tried the full C# example from https://microsoft.github.io/monaco-editor/ which contained the Does it not support Top Level Statements? |
Beta Was this translation helpful? Give feedback.
-
monaco-editor has language server protocol support only for |
Beta Was this translation helpful? Give feedback.
monaco-editor has language server protocol support only for
json
,html
,css
,typescript
,javascript
.You can see keyword completions as you ever typed before in editor for other languages.
See: https://github.com/microsoft/monaco-editor/tree/main/src/language