<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/D7699" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Hmm, I think the idea is good.</p>

<p>But instead of adding API, could we not just define that an additional resource dir is searched always?</p>

<p>e.g. like:</p>

<p>loadSyntaxFolder(repo, QStringLiteral(":/org.kde.syntax-highlighting/syntax-extra"));</p>

<p>or something like that and per definition applications (or libraries using the framework) can just add extra syntax files are resources to that directory?</p>

<p>Then you need no API and it is very easy to deploy the stuff, as you just bundle all the extra files in the qrc inside the binary (lib).</p>

<p>(same for themes)</p>

<p>That would then work like other frameworks like kxmlgui and Co. just search in some defined resource dir for extra things.</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/D7699" rel="noreferrer">https://phabricator.kde.org/D7699</a></div></div><br /><div><strong>To: </strong>zrax, Kate, Framework: Syntax Hightlighting, dhaumann<br /><strong>Cc: </strong>dhaumann, vkrause, cullmann, Framework: Syntax Hightlighting, Frameworks<br /></div>