Register a new language for CodeMirror
Language to register
Find a codemirror language by name or CodeMirror spec.
The CodeMirror language
Optional
fallback: booleanWhether to fallback to default mimetype spec or not
The language or null
Find a codemirror language by extension.
The extension name
The language or null
Find a codemirror language by filename.
File name
The language or null
Find a codemirror language by MIME.
Mime type to look for
The language or null
Find a codemirror language by name.
The language name
The language or null
Load a CodeMirror language specified by name or Codemirror spec.
The language to ensure. If it is a string, uses findBest to get the appropriate spec.
A promise that resolves when the language is available.
Get the raw list of available languages specs.
The available languages
Parse and style a string.
Code to highlight
Code language
HTML element into which the highlighted code will be inserted
Editor language interface