UI module

insert_text

procedure · 1 overloadsince 0.31.0Source

Replace the selection (or insert at the caret) with text.

insert_text :: (edit: *Text_Edit, text: string)

Replace the selection (or insert at the caret) with text.

Parameters

edit: *Text_Edit
the text being edited.
text: string
the text to insert. Line breaks are removed in a single-line edit.

See also