get_selection


Description:

public abstract string get_selection (out int cursor_line, out int cursor_offset)

Get the currently selected text and cursor position.

Parameters:

cursor_line

Output parameter for cursor line number

cursor_offset

Output parameter for cursor character offset

Returns:

Selected text, or empty string if nothing is selected