igiCodeEditorSetText

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

Syntax:

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


Parameters

Returns

Nothing



Summary

Replaces all the editor's text, puts the caret at the start and clears the undo history and marks.

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
igiCodeEditorSetText(editor, fileLoadString("level1.script", BBR_STR_FORM_UTF8))

BambooBasic © 2026 Michael Denathorn