Ace API Reference
    Preparing search index...

    Variable editSessionTextMarkerMixin

    editSessionTextMarkerMixin: {
        addTextMarker(
            ...this: any,
            range: Ace.IRange,
            className: string,
            type?: string,
        ): number;
        getTextMarkers(...this: any): TextMarker[];
        removeTextMarker(...this: any, markerId: number): void;
    } = ...

    Type declaration

    • addTextMarker: function
      • Adds a text marker to the current edit session.

        Parameters

        • ...this: any
        • range: Ace.IRange

          The range to mark in the document

        • className: string

          The CSS class name to apply to the marked text

        • Optionaltype: string

          The type of marker (e.g. "invisible" for whitespace rendering)

        Returns number

        The unique identifier for the added text marker

    • getTextMarkers: function
      • Retrieves the text markers associated with the current edit session.

        Parameters

        • ...this: any

        Returns TextMarker[]

        An array of text markers, or an empty array if no markers exist

    • removeTextMarker: function
      • Removes a text marker from the current edit session.

        Parameters

        • ...this: any
        • markerId: number

          The unique identifier of the text marker to remove

        Returns void