Bug 432587

Summary: Syntax Highlighting for xkeyboard config files
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: H.H. <cyberbeat>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: christoph, walter.von.entferndt
Priority: NOR    
Version First Reported In: 5.78.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demo XKeyboard file

Description H.H. 2021-02-06 20:31:13 UTC
I found this one:
https://store.kde.org/p/1220577/
and put it in my
~/.local/share/org.kde.syntax-highlighting/syntax/
folder. It works. It would be great, if you could add it as default.
Comment 1 Dominik Haumann 2021-02-07 06:43:25 UTC
Can you attach some example xkeyboard file that we can use as unit test? MIT licensed.
Comment 2 H.H. 2021-02-07 18:26:04 UTC
Created attachment 135490 [details]
Demo XKeyboard file

This is how you get your own configuration:

xkbcomp $DISPLAY demo.xkb
Comment 3 Christoph Cullmann 2023-12-19 18:23:02 UTC
Hi,

as long as nobody contributes a highlighting, nothing will happen.

You already pointed to soms description, perhaps you can give it some try.

We have good documentation on

https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/README.md

to get somebody started. Beside this, one can always reach out on the channels
described on

https://kate-editor.org/support/
Comment 4 H.H. 2023-12-20 20:27:58 UTC
Sorry, I don't understand, why you closed this. The only thing I asked you, to add an already existing kate-hightlighting to the official kate installation. I gave the link here:
https://store.kde.org/p/1220577/
and also an advice how to get your own config as an unit test file. What do you want more?
Comment 5 Christoph Cullmann 2023-12-20 21:39:23 UTC
Ok, you are right, I did misread this, sorry.
Comment 6 Bug Janitor Service 2025-09-22 22:56:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/743
Comment 7 Christoph Cullmann 2025-09-23 14:58:57 UTC
Git commit 543dd222c0c4cdaf0c5a76fb0a99e899d676cf3b by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 23/09/2025 at 14:37.
Pushed by cullmann into branch 'master'.

add XKeyboardConfig (XKB) syntax highlighting

A  +132  -0    autotests/folding/test.xkb.fold
A  +139  -0    autotests/html/test.xkb.dark.html
A  +139  -0    autotests/html/test.xkb.html
A  +132  -0    autotests/input/test.xkb
A  +132  -0    autotests/reference/test.xkb.ref
A  +470  -0    data/syntax/xkb.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/543dd222c0c4cdaf0c5a76fb0a99e899d676cf3b