Interface TextSearchPreviewOptions

Options to specify the size of the result text preview. These options don't affect the size of the match itself, just the amount of preview text.

interface TextSearchPreviewOptions {
    charsPerLine: number;
    matchLines: number;
}

Properties

charsPerLine: number

The maximum number of characters included per line.

matchLines: number

The maximum number of lines in the preview. Only search providers that support multiline search will ever return more than one line in the match.