Interface IEditorLanguageRegistry

Editor language interface

interface IEditorLanguageRegistry {
    addLanguage(language): void;
    findBest(language, fallback?): null | IEditorLanguage;
    findByExtension(ext): null | IEditorLanguage;
    findByFileName(name): null | IEditorLanguage;
    findByMIME(mime): null | IEditorLanguage;
    findByName(name): null | IEditorLanguage;
    getLanguage(language): Promise<null | IEditorLanguage>;
    getLanguages(): IEditorLanguage[];
    highlight(code, language, el): Promise<void>;
}

Implemented by

Methods