igiCodeEditorInsertText

Category: IGI (in-game GUI) — Code editor

Syntax:

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


Parameters

Returns

Nothing



Summary

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

BambooBasic © 2026 Michael Denathorn