Editor › getLine
Official
Get the text at line index (0-based).
Signature:
getLine(line: number): string
Parameters:
| Parameter | Type | Description |
| line | number | The line index. |
Returns: string — The text at the line.
Since: 0.11.11
Example:
console.log(editor.getLine(42));