Skip to content

Editor.getLine method

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: stringThe text at the line.

Since: 0.11.11

Example:

console.log(editor.getLine(42));