Format file content with line numbers (cat -n style).
Chunks lines longer than MAX_LINE_LENGTH with continuation markers (e.g., 5.1, 5.2).
formatContentWithLineNumbers(content: string | string[], startLine: number = 1): string| Name | Type | Description |
|---|---|---|
content* | string | string[] | File content as string or list of lines |
startLine | number | Default: 1Starting line number (default: 1) |