There's a lightweight, fine and Qt based text editor with kf5 syntax-highlihgting without any KDE dependency:

https://github.com/zrax/qtextpad