D14451: Add Repo::formatFromId(), Definition::formatFromId() and ::formats()

Dominik Haumann noreply at phabricator.kde.org
Sun Jul 29 13:15:42 BST 2018


dhaumann added a comment.


  > e.g. for the customization of coloring you want to present the list of all formats a highlighting has, including the included ones. (even if later the color of the included ones is not stored per including highlighting)
  
  The included ones behave differently in KSyntaxHighlighting and KTE: In KTE, the colors of included definitions can be different when included in multiple highlighitng files. In KSyntaxHighlighting, this is by design not possible: If you change "Alert" in C++, you also change Alert in Python etc... So this is always shared.
  
  And getting a list of all included Definitions sounds doable as well ;) That is probably still missing in the API. So we'd need a Definition::includedDefinitions (that recursively returns all Definitions it uses).
  
  Anything else?

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D14451

To: dhaumann, cullmann, vkrause
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180729/7c5f6959/attachment-0001.html>


More information about the KWrite-Devel mailing list