igiCodeEditorInsertText

Category: IGI

Syntax:

igiCodeEditorInsertText:Void(editor:Int, text:String)


Parameters

Returns

Void



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).

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn