Summary: | Custom user syntax highlighting file does not override system syntax highlighting file | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Russell <prusselltechgroup> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph |
Priority: | NOR | ||
Version First Reported In: | 19.08.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kate/afa4538b6412977d0aeb8f7a0c100a9f314df3ad | Version Fixed In: | |
Sentry Crash Report: |
Description
Russell
2019-12-09 19:48:37 UTC
Hi, which file is used is decided by the version of it (for files of the same name). If you increment the file version in the xml, does it work? (this is done that way to allow e.g. local files of the user to be overruled if KTextEditor ships updates with higher versions) That worked. In my custom file, I changed the language attribute from 'version="2"' to 'version="992"'. The system file was at 'version="3"'. Would it be possible to change this to a documentation update for https://docs.kde.org/stable5/en/applications/katepart/highlight.html. Documentation suggestion: +++++++++++++ Custom .xml highlight definition files are located in org.kde.syntax-highlighting/syntax/ in your user folder found with qtpaths--paths GenericDataLocation which usually is $HOME/.local/share. Regarding the language element, if multiple .xml files on your system have the same name attribute, the file with the highest version attribute will be loaded. +++++++++++++ Git commit afa4538b6412977d0aeb8f7a0c100a9f314df3ad by Christoph Cullmann. Committed on 21/12/2019 at 15:12. Pushed by cullmann into branch 'master'. document that the version is important for the choice of the syntax definition to load M +2 -0 doc/katepart/development.docbook https://invent.kde.org/kde/kate/commit/afa4538b6412977d0aeb8f7a0c100a9f314df3ad Git commit afa4538b6412977d0aeb8f7a0c100a9f314df3ad by Christoph Cullmann. Committed on 21/12/2019 at 15:12. Pushed by scmsync into branch 'master'. document that the version is important for the choice of the syntax definition to load M +2 -0 doc/katepart/development.docbook https://commits.kde.org/kate/afa4538b6412977d0aeb8f7a0c100a9f314df3ad Thanks for the suggestion! |