D14451: Add Repo::formatFromId(), Definition::formatFromId() and ::formats()
noreply at phabricator.kde.org
Sun Jul 29 13:34:47 BST 2018
cullmann added a comment.
I think if we have
1. formats() per definition
2. some "includedDefinitions"
we can build up the needed format list per highlighting that will allow us to map the syntax-highlighting formats to the KTextEditor::Attribute we need internally and in our external API.
A global lookup for id => format might then not even be needed, as we will internally need to lookup our wrapped KTextEditor::Attribute anyways and need to come up with some format->id() => internal attribute mapping after building that up.
What is lacking in the Format ATM is an accessor for the underlying default style, I think, which we need, as that is exposed both in Attribute and other API.
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