I have now found out that the following code loads the user highlighter. Dim obj Set obj = NewEditor() obj.assignActiveEditor()
obj.highlighter("AutoIt3") reloadUserHighlighter("AutoIt3") Unfortunately not the current highlighter is used, but a "built-in" one. To explain the background. When PSPad starts, it checks the integrity of the files of my addon. If necessary, the existing file "...\Syntax\AutoIt3.ini" is replaced by a backup. This restored file should now be loaded as a user highlighter, but probably a "built-in" one will be loaded instead. I suspect PSPad loads the syntax files on startup and the restored syntax file is ignored. Could you change the "reloadUserHighlighter" command to load the restored file? -- <https://forum.pspad.com/read.php?2,73534,73535> PSPad freeware editor https://www.pspad.com