This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate syntax highlighting custom xml

Tags: None
(comma "," separated)
peterv
Registered Member
Posts
3
Karma
0

Kate syntax highlighting custom xml

Mon Mar 01, 2021 6:37 pm
Dear forum users,

I wrote a custom syntax highlighting schema for Kate. The documentation states where you have to place the file on Linux and Windows, but not on Mac.

My colleagues who are Mac users were not able to guess the location of the custom highlighting xml files based on the Linux and Windows paths.

Could someone point me to the correct path, please?

Thanks,

Peter
peterv
Registered Member
Posts
3
Karma
0
NB: these are the locations for Linux and Windows (from https://invent.kde.org/frameworks/syntax-highlighting):

For local user $HOME/.local/share/org.kde.syntax-highlighting/syntax/
For Kate's Flatpak package $HOME/.var/app/org.kde.kate/data/org.kde.syntax-highlighting/syntax/
For Kate's Snap package $HOME/snap/kate/current/.local/share/org.kde.syntax-highlighting/syntax/
On Windows® %USERPROFILE%\AppData\Local\org.kde.syntax-highlighting\syntax\
peterv
Registered Member
Posts
3
Karma
0
A colleague found the correct path (MacOS Big Sur, Kate 20.12.2):

$HOME/Library/Application Support/org.kde.syntax-highlighting/syntax

To install a highlighting scheme `schema.xml` that is located in the Downloads folder, do the following steps:

1. Create the "org.kde.syntax-highlighting/syntax" folders within the Application Support folder:
Code: Select all
mkdir -p "$HOME/Library/Application Support/org.kde.syntax-highlighting/syntax"

2. Copy the schema to the new folder:
Code: Select all
cp ~/Downloads/schema.xml "$HOME/Library/Application Support/org.kde.syntax-highlighting/syntax"


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]