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