Parameters & Returns
Parameters
Returns
Quick Summary
Loads a language for the code editor from a .lang file.
Takes path (A .lang file).
Returns: A language handle for igiCodeEditorSetLanguage (0 if the file can't be read on desktop).
Technical Exegesis...
Loads a language for the code editor from a .lang file. On the web the file is fetched in the background, and editors using the handle are coloured when it arrives. BambooBasic, C++, Lua, WGSL and HLSL come ready-made in userlibs\languages - copy the one you want next to your program.
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.
Returns: A language handle for igiCodeEditorSetLanguage (0 if the file can't be read on desktop).
Example
Global basic:Int = igiLoadLanguage("Media/bamboobasic.lang")