WML Syntax Highlighting for Kate/KWrite
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Re: WML Syntax Highlighting for Kate/KWrite
The patch was sent!
As information, the KDE KSyntaxHighlighting framework is in this repository: https://phabricator.kde.org/source/syntax-highlighting/ (file: data/syntax/wml.xml; test file: autotests/input/test.pbl)
If someone wants to send an improvement to the WML highlighter (or other), the documentation to send patches with Arcanist is here: https://community.kde.org/Infrastructure/Phabricator
Also, the documentation for creating/modifying syntax highlighting files (xml) is: https://docs.kde.org/trunk5/en/applicat ... light.html
The KDE Frameworks libraries (to which KSyntaxHighlighting belongs) are relased monthly: https://community.kde.org/Schedules/Frameworks
Finally (it doesn't hurt to say it), after compiling KSyntaxHighlighting (cmake), to generate the auto-test files (reference, html & folding) use:
As information, the KDE KSyntaxHighlighting framework is in this repository: https://phabricator.kde.org/source/syntax-highlighting/ (file: data/syntax/wml.xml; test file: autotests/input/test.pbl)
If someone wants to send an improvement to the WML highlighter (or other), the documentation to send patches with Arcanist is here: https://community.kde.org/Infrastructure/Phabricator
Also, the documentation for creating/modifying syntax highlighting files (xml) is: https://docs.kde.org/trunk5/en/applicat ... light.html
The KDE Frameworks libraries (to which KSyntaxHighlighting belongs) are relased monthly: https://community.kde.org/Schedules/Frameworks
Finally (it doesn't hurt to say it), after compiling KSyntaxHighlighting (cmake), to generate the auto-test files (reference, html & folding) use:
make test
&& ./autotests/update-reference-data.sh
- Atreides
- Posts: 1074
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: WML Syntax Highlighting for Kate/KWrite
I've been using Kate to edit wml for a while but only discovered that it has a wml mode when I made a .pbl file. By default kate uses something called Nagios mode for .cfg files and I never knew. To change it I set WML priority from 0 to 1 in the settings and now it loads .cfg with wml mode on. It's fantastic, wish I had found it sooner.