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).
editor
Int
text
String
If igiButton("Add a loop") Then igiCodeEditorInsertText(editor, "REPEAT 4" & Chr(10) & "END")