Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only javascript language works #104

Closed
perilouspete opened this issue Sep 1, 2023 · 3 comments
Closed

Only javascript language works #104

perilouspete opened this issue Sep 1, 2023 · 3 comments

Comments

@perilouspete
Copy link

Hi

I have changed the language to csharp but then there is no completion the only language that works is javascript

private StandaloneEditorConstructionOptions EditorConstructionOptions(StandaloneCodeEditor editor)
{
return new StandaloneEditorConstructionOptions
{
Language = "csharp"

};

}

Am I doing something wrong?

@bao86
Copy link

bao86 commented Dec 17, 2023

Up :)
How can we change language ?

@serdarciplak
Copy link
Owner

The language support is managed by Monaco Editor and as it supports "csharp" as a language, BlazorMonaco also supports that. Is it possible that you may have a custom integration? For example, the library mentioned here is said to be supporting only JSON and YAML. This may be a similar thing.

@serdarciplak
Copy link
Owner

As you can see here, Monaco Editor (and thus BlazorMonaco) supports csharp. You can use the StandaloneEditorConstructionOptions.Language property in BlazorMonaco to set the language of an editor instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants