Ace API Reference
    Preparing search index...

    Function prompt

    • Prompt plugin is used for getting input from user.

      Parameters

      • editor: Editor

        Ouside editor related to this prompt. Will be blurred when prompt is open.

      • message: string | Partial<PromptOptions>

        Predefined value of prompt input box.

      • options: Partial<PromptOptions>

        Cusomizable options for this prompt.

      • Optionalcallback: Function

        Function called after done.

      Returns any

    Index

    Methods

    • Displays a searchable command palette for executing editor commands with keyboard shortcuts and history.

      Parameters

      • editor: Editor

        The editor instance to execute commands on

      • Optionalcallback: Function

      Returns void

    • Displays a "Go to Line" prompt for navigating to specific line and column positions with selection support.

      Parameters

      • editor: Editor

        The editor instance to navigate within

      • Optionalcallback: Function

      Returns void

    • Shows an interactive prompt containing all available syntax highlighting modes that can be applied to the editor session. Users can type to filter through the modes list and select one to change the editor's syntax highlighting mode. The prompt includes real-time filtering based on mode names and captions.

      Parameters

      • editor: Editor

        The editor instance to change the language mode for

      • Optionalcallback: Function

      Returns void