Category: IGI (in-game GUI) — Code editor
Syntax:
igiDefineLanguage:Int(text:String)
A language handle for igiCodeEditorSetLanguage.
Makes a language for the code editor from .lang text - handy for a small language your game makes up. Mistakes in the text are reported (see igiLanguageErrors) rather than stopping the program. See the .lang format page.
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.
Global lang:Int = igiDefineLanguage("name = Turtle" & Chr(10) & "lineComment = #" & Chr(10) & "[commands]" & Chr(10) & "FORWARD TURN")
BambooBasic © 2026 Michael Denathorn