Format file content with line numbers and structured source-line boundaries.
The boundaries let downstream size limiting truncate only after complete source lines without reparsing the rendered gutter. This keeps presentation details (padding, tab separators, and continuation labels) encapsulated in the formatter that creates them.
formatContentWithLineNumbersAndBoundaries(
content: string | string[],
startLine: number = 1
): FormattedContentWithLineNumbers| Name | Type | Description |
|---|---|---|
content* | string | string[] | |
startLine | number | Default: 1 |