Ok, so this is also implemented.
Basically you call
include("test.js");And it loads and executes the file "test.js" from the "Scripts" subfolder of the SynthPresets folder.
Nested including is supported and I wrote a simple protection system to prevent recursive includes (if you include two files in each other).
The code in the external file gets treated the same way as the code in the editor (live variable watch, autocomplete).
If there is an error in the external file it will get printed in the console (but the rest will compile fine). But actually you can expect that a external script file is tested and compiles correctly…