Closed wmchuang closed 1 year ago
Hi.
You can use the BlazorMonaco.Global.SetModelLanguage()
method with the model instance of your editor.
Global.SetModelLanguage(editor.GetModel(), "javascript");
BTW, as BlazorMonaco is just a wrapper for the Monaco Editor JS library, you can use its documentation for reference.
This is horribly unintuitive.
@gregsdennis I agree with you but that's how Microsoft has decided to implement it. BlazorMonaco just follows the original Monaco Editor's interface.
Can you send me an example? Thank you David
Originally posted by @pcsolutioncz in https://github.com/serdarciplak/BlazorMonaco/issues/77#issuecomment-1432555305