igiCodeEditorInsertText

Types text in at the caret, replacing any selection - for buttons that add snippets, auto-complete and so on. Takes editor (An editor handle), text (The text to put in).

IGI

Parameters & Returns

Parameters

editor Int
text String

Returns

Void

Quick Summary

Types text in at the caret, replacing any selection - for buttons that add snippets, auto-complete and so on. Takes editor (An editor handle), text (The text to put in).

Technical Exegesis...

Types text in at the caret, replacing any selection - for buttons that add snippets, auto-complete and so on. It can be undone like typing.

This can be called any time, in Main or in the loop. The .lang file format is on its own page. See the IGI guide.

Example

Example.bam
If igiButton("Add a loop") Then igiCodeEditorInsertText(editor, "REPEAT 4" & Chr(10) & "END")