Interface IEditorLanguage

The interface of a codemirror language specification.


  • IEditorLanguage


alias?: readonly string[]

Language name alias.

displayName?: string

Language displayed name.

extensions?: readonly string[]

Supported file extensions.

filename?: RegExp

Filename expression supported by the language.

load?: (() => Promise<LanguageSupport>)

Type declaration

mime: string | readonly string[]

Language mime types.

name: string

Language name.

support?: LanguageSupport

CodeMirror language support.


It can provided directly or it will be obtained using load.

Generated using TypeDoc