Remove .conf extension from "INI Files" hl, to determine the highlighter using MIME type
ClosedPublic

Authored by nibags on May 19 2019, 11:35 AM.

Details

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.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nibags created this revision.May 19 2019, 11:35 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptMay 19 2019, 11:35 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.May 19 2019, 11:35 AM
cullmann accepted this revision.May 19 2019, 11:41 AM

OK with that.

This revision is now accepted and ready to land.May 19 2019, 11:41 AM
This revision was automatically updated to reflect the committed changes.