<table><tr><td style="">nibags created this revision.<br />nibags added reviewers: KTextEditor, dhaumann, cullmann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />nibags requested review of this revision.
</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/D23422">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In syntax highlighting XML files, it doesn't work to turn off attributes, for example: <tt style="background: #ebebeb; font-size: 13px;">bold="0"</tt>, <tt style="background: #ebebeb; font-size: 13px;">italic="0"</tt> or <tt style="background: #ebebeb; font-size: 13px;">underline="0"</tt>.</p>
<p>This is fixed, but only for KSyntaxHighlighting themes, that is, this continues to not work in "KDE" and "Vim (dark)".</p>
<p>To correct that it is necessary to add to the API of the <tt style="background: #ebebeb; font-size: 13px;">KSyntaxHighlighting::Format</tt> class, methods such as <tt style="background: #ebebeb; font-size: 13px;">hasBold()</tt>, <tt style="background: #ebebeb; font-size: 13px;">hasItalic()</tt>, etc. to know if the attributes "bold", "italic", "underline" & "strikeout" are modified in the XML file (the methods <tt style="background: #ebebeb; font-size: 13px;">isBold(...)</tt>, <tt style="background: #ebebeb; font-size: 13px;">isItalic(...)</tt>, etc., return the combination between the syntax definition and the theme).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23422">https://phabricator.kde.org/D23422</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/syntax/katehighlight.cpp</div></div></div><br /><div><strong>To: </strong>nibags, KTextEditor, dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>