D25328: Always rehiglhight() after definition was changed

Méven Car noreply at phabricator.kde.org
Sat Nov 16 22:58:20 GMT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20191116/44f7db03/attachment.html>


More information about the KWrite-Devel mailing list