D7699: Add support for custom search paths for application-specific syntax and theme definitions

Christoph Cullmann noreply at phabricator.kde.org
Wed Sep 6 20:09:22 UTC 2017


cullmann added a comment.


  Hmm, I think the idea is good.
  
  But instead of adding API, could we not just define that an additional resource dir is searched always?
  
  e.g. like:
  
  loadSyntaxFolder(repo, QStringLiteral(":/org.kde.syntax-highlighting/syntax-extra"));
  
  or something like that and per definition applications (or libraries using the framework) can just add extra syntax files are resources to that directory?
  
  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).
  
  (same for themes)
  
  That would then work like other frameworks like kxmlgui and Co. just search in some defined resource dir for extra things.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D7699

To: zrax, #kate, #framework_syntax_hightlighting, dhaumann
Cc: dhaumann, vkrause, cullmann, #framework_syntax_hightlighting, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170906/087158ac/attachment.html>


More information about the Kde-frameworks-devel mailing list