Custom formatting function.
If true, insert the triggering character after autoformatting.
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.
Function called just before format
.
Generally used to reset the selected block.
Query to allow autoformat.
Triggering character to autoformat.
If true, the trigger should be at block start to allow autoformatting.
For mode: 'block'
: set block type. If format
is defined, this field is ignored.
For mode: 'mark'
: Mark(s) to add.
Generated using TypeDoc
If true, allow to autoformat even if there is a block of the same type above the selected block.
false