Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AutoformatQueryOptions<V, E>

Type parameters

Hierarchy

Index

Properties

Optional insertTrigger

insertTrigger: boolean

If true, insert the triggering character after autoformatting.

default:

false

match

match: string | MatchRange | string[] | MatchRange[]

The rule applies when the trigger and the text just before the cursor matches. For mode: 'block': lookup for the end match(es) before the cursor. For mode: 'text': lookup for the end match(es) before the cursor. If format is an array, also lookup for the start match(es). For mode: 'mark': lookup for the start and end matches. Note: '_*', ['_*'] and { start: '_*', end: '*_' } are equivalent.

text

text: string

insertText text.

Optional trigger

trigger: string | string[]

Triggering character to autoformat.

default

the last character of match or match.end

Generated using TypeDoc