WML Syntax Highlighting for Kate/KWrite

The place to post your WML questions and answers.

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.
User avatar
nnibags
Posts: 6
Joined: December 31st, 2018, 9:00 am
Location: Chile

Re: WML Syntax Highlighting for Kate/KWrite

Post by nnibags »

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: make test && ./autotests/update-reference-data.sh
User avatar
Atreides
Posts: 184
Joined: March 30th, 2019, 10:38 pm
Location: The North Pole

Re: WML Syntax Highlighting for Kate/KWrite

Post by Atreides »

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.
--
Any typos are the fault of my laptop keyboard!
Lonely Era (Ice Age) maintainer: https://forums.wesnoth.org/viewtopic.php?f=19&t=42630
Merry Christmas Campaign maintainer: https://forums.wesnoth.org/viewtopic.ph ... 97#p662897
Post Reply