The way how to fill keyword list dynamically must be created. Please note that highlighting is realtime process during page painting and must be highly optimized. It can't be "delayed" by running any events, calling external scripts e.t.c.
-- <https://forum.pspad.com/read.php?2,74256,74279> PSPad freeware editor https://www.pspad.com