Summary: | Prolog files highlighted as perl | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Vincent Verhoeven <verhoevenv> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | christoph, jowenn |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Vincent Verhoeven
2009-11-15 15:22:03 UTC
Having the same file extension is bad. Does a mimetype exist for prolog files? Kate used additionally to the file extension the KDE mimetype system for determing what kind of file it is dealing with. You can increase the priority of the highlighting so that it is favoured in the highlighting configuration. Editor Component -> Open/Save -> Modes Filetypes -> Sources/Prolog There you can add the .pl Extension and increase the priority It seems KDE recognizes the files as Perl files (application/x-perl), which is also what xdg-mime gives (not sure that is relevant though). I believe the correct mime type should be "text/x-prolog". Perhaps I should just start giving my files .prolog extensions. I don't think that's the convention though, I've never encountered it before. Manually adding the extension seems to fix most problems. Although I probably shouldn't try editing Perl files now. :) :) Anyway, nothing kate can fix, if the mimetypes don't get fixed. |