meven added a comment.
In D25328#563406 <https://phabricator.kde.org/D25328#563406>, @dhaumann wrote: > Can't you call `rehighlight()` yourself after calling `setDefinition()`? > > Btw, tanks for looking into this! I have done so in D25323 <https://phabricator.kde.org/D25323>. But I meant to open this one as well to figure out which way to go, user side fix or lib fix ? I would favor the lib fix as it seems it might save some users the trouble of adding a workaround because no definition is found just to get highlight like D25323 <https://phabricator.kde.org/D25323> does. Kate has such a workaround as well in KateSyntaxHighlight I believe. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D25328 To: meven, kossebau, cullmann, vkrause Cc: dhaumann, kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars