It seems like you can't be sure which module is actually loaded first. You
cannot rely on a specific sort order. For stable editor extensions all needed
routines have to be inserted in each module. This is currently about 400 lines
extra for each module and it makes my code confusing.
Could you include a routine that loads a given script first?
I suppose that you load all script modules in a loop. You could load the given
file (for example "Main.vbs") before the loop is executed. Pseudo code:
*[color=#0000bb]If FileExists("Main.vbs") Then Load("Main.vbs")[/color]*
In the loop it is possible to filter so that the "Main.vbs" is not loaded
twice:
*[color=#0000bb]If Not FileName = "Main.vbs" Then ...[/color]*
What do you think, is this possible or is it too much effort?
--
<https://forum.pspad.com/read.php?2,74289,74295>
PSPad freeware editor https://www.pspad.com