Protected
languagesReturns a mime type for the given file path.
If a mime type cannot be found returns the default mime type text/plain
, never null
.
There may be more than one mime type, but only the first one will be returned.
To access all mime types, use IEditorLanguageRegistry
instead.
Returns a mime type for the given language info.
If a mime type cannot be found returns the default mime type text/plain
, never null
.
There may be more than one mime type, but only the first one will be returned.
To access all mime types, use IEditorLanguageRegistry
instead.
The mime type service for CodeMirror.