Skip to content

Update syntax files location in the README #13

@ezio-melotti

Description

@ezio-melotti

The README currently states that:

Installation
------------
Copy the xml files into:
- Either KDE4: `~/.kde4/share/apps/katepart/syntax`
- Or KF5: `~/.local/share/katepart5/syntax`

I'm using Kubuntu 23.10 with Kate 23.08.1 and KDE 5.110.0, and I don't have a ~/.kde4 nor a ~/.local/share/katepart5 dir.

By looking at the Kate documentation, syntax files should either go in $HOME/.local/share/org.kde.syntax-highlighting/syntax/ or /usr/share/org.kde.syntax-highlighting/syntax/ (at least on Linux).


I was able to install the xml files by doing:

$ cd .local/share/org.kde.syntax-highlighting/  # this dir already existed on my system
$ mkdir syntax  # this dir didn't exist, so I created it
$ cd syntax
$ wget https://raw.githubusercontent.com/mtorromeo/kate-syntax-files/master/XXXXX.xml

After restarting Kate the new syntax highlight files worked.


I suggest updating the README by adding these paths and/or linking to the Kate docs. I'm not sure if the paths currently listed are still used or if they should be removed. Mentioning that the syntax dir might need to be create would be helpful too. I can create a PR if you tell me what to keep/update/remove.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions