gemini icon indicating copy to clipboard operation
gemini copied to clipboard

Q: CodeEditor but only with one language

Open elpablos opened this issue 9 years ago • 1 comments

Hi, Is there any chance how to use NuGet Gemini.Modules.CodeEditor but only with one language, for example only with C#?

Thanks, Elpablos

elpablos avatar Jan 22 '16 16:01 elpablos

I have a possible solution, but it's a bit hacky:

  • [Import] an instance of LanguageDefinitionManager
  • Grab the LanguageDefinitions property, but cast it to a List<ILanguageDefinition>
  • Remove the ones you don't want

I don't know why it's currently an IEnumerable<>. I don't think there's a good reason for that.

tgjones avatar Jan 22 '16 21:01 tgjones