<table><tr><td style="">cullmann added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14451">View Revision</a></tr></table><br /><div><div><p>I think if we have</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">formats() per definition</li>
<li class="remarkup-list-item">some "includedDefinitions"</li>
</ol>

<p>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.</p>

<p>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.</p>

<p>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.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14451">https://phabricator.kde.org/D14451</a></div></div><br /><div><strong>To: </strong>dhaumann, cullmann, vkrause<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>