Returns a mime type for the given file path.
If a mime type cannot be found returns the default mime type text/plain
, never null
.
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
.
Generated using TypeDoc
The mime type service for CodeMirror.