Ace API Reference
    Preparing search index...

    Function getModeForPath

    • Suggests a mode based on the file extension present in the given path

      Parameters

      • path: string

        The path to the file

      Returns Mode

      Returns an object containing information about the suggested mode.