Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodeMirrorMimeTypeService

The mime type service for CodeMirror.

Hierarchy

  • CodeMirrorMimeTypeService

Implements

Index

Constructors

constructor

Methods

getMimeTypeByFilePath

  • getMimeTypeByFilePath(path: string): string
  • Returns a mime type for the given file path.

    Notes

    If a mime type cannot be found returns the default mime type text/plain, never null.

    Parameters

    • path: string

    Returns string

getMimeTypeByLanguage

Generated using TypeDoc