igiCodeEditorSetText

Replaces all the editor's text, puts the caret at the start and clears the undo history and marks. Takes editor (An editor handle), text (The new text (Chr(10) between lines)).

IGI

Parameters & Returns

Parameters

editor Int
text String

Returns

Void

Quick Summary

Replaces all the editor's text, puts the caret at the start and clears the undo history and marks. Takes editor (An editor handle), text (The new text (Chr(10) between lines)).

Technical Exegesis...

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

Example.bam
igiCodeEditorSetText(editor, fileLoadString("level1.script", BBR_STR_FORM_UTF8))