D21288: Remove .conf extension from "INI Files" hl, to determine the highlighter using MIME type
Nibaldo González
noreply at phabricator.kde.org
Sun May 19 12:35:48 BST 2019
nibags created this revision.
nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
nibags requested review of this revision.
REVISION SUMMARY
BUG: 400290
The extension `.conf` is very generic, since depending on the context, it can be used with a different language, and assigning it to the "INI Files" highlighter isn't very convenient.
For example, in "Fontconfig" the XML files have a `.conf` extension.
Therefore, I propose that the `.conf` extension isn't assigned to any syntax highlighter, so use the MIME type to determine the highlighting mode in those files.
For example, when applying this patch, the Fontconfig files (located in `/etc/fonts/`) are highlighted as XML by default.
REPOSITORY
R216 Syntax Highlighting
BRANCH
remove-ext-conf-ini
REVISION DETAIL
https://phabricator.kde.org/D21288
AFFECTED FILES
data/syntax/ini.xml
To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190519/72910624/attachment.html>
More information about the KWrite-Devel
mailing list