MVVM service that provides access to CodeEditor control functionality from ViewModels.
public interface ICodeEditorService {
void MarkAsSaved();
Task<IReadOnlyCollection<string>> GetLanguagesAsync(CancellationToken cancellationToken = default);
void RegisterLanguage(LanguageDescriptor language);
}| Name | Description |
|---|---|
MarkAsSaved() |
Resets the IsModified flag of the associated CodeEditor to false. |
GetLanguagesAsync(CancellationToken) |
Asynchronously retrieves a collection of available programming language IDs from the associated CodeEditor. |
RegisterLanguage(LanguageDescriptor) |
Registers a custom programming language with a Monarch tokenizer in the associated CodeEditor. |