nibags added a comment.
Indeed, WordDetect checks only the boundaries. What happens is that when using WordDetect with `<tag`, you need a border character before `<`, when it shouldn't. That is, `<tag` will not match in the text: "word<tag>". It's correct to use RegExpr with `<tag\b` instead of WordDetect. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D24354 To: nibags, #framework_syntax_highlighting, dhaumann, cullmann Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann