• Gets the current language at a position. Useful if you want to run different logic based on the language.

    Parameters

    • editor: PrismEditor

      Editor to search in.

    • Optional position: number

      Position to search in. Defaults to selectionStart.

    Returns string

Generated using TypeDoc