D14451: Add Repo::formatFromId(), Definition::formatFromId() and ::formats()
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).
R216 Syntax Highlighting
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...
More information about the KWrite-Devel