Private
_modeRegister a new language for CodeMirror
Language to register
Find a codemirror mode by name or CodeMirror spec.
The CodeMirror mode
Whether to fallback to default mimetype spec or not
The mode or null
Find a codemirror mode by extension.
The extension name
The mode or null
Find a codemirror mode by filename.
File name
The mode or null
Find a codemirror mode by MIME.
Mime type to look for
Whether xml and json should be assimilated to the generic mimetype
The mode or null
Find a codemirror mode by name.
The mode name
The mode or null
Ensure a codemirror mode is available by name or Codemirror spec.
The mode to ensure. If it is a string, uses [findBest] to get the appropriate spec.
A promise that resolves when the mode is available.
Get the raw list of available modes specs.
The available modes
Parse and style a string.
Code to highlight
Code language
HTML element into which the highlighted code will be inserted
Protected
make
CodeMirror language registry