igiCodeEditorGetText

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

Syntax:

igiCodeEditorGetText:String(editor:Int)


Parameters

Returns

All the editor's text, with Chr(10) between lines.



Summary

Gets the text, to save it or to run it.

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

BambooBasic © 2026 Michael Denathorn