D14451: Add Repo::formatFromId(), Definition::formatFromId() and ::formats()
Christoph Cullmann
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.
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/06e37c56/attachment.html>
More information about the KWrite-Devel
mailing list