I just tested HTML highlighter as you required and # char isn't contained in the double click text selection and works as wordbreak chars in HTML as you requested.
-- <https://forum.pspad.com/read.php?2,72872,73937> PSPad freeware editor https://www.pspad.com