This package contains syntax highlighting definitions for the Kate Text Editor. Kate for the KDE Frameworks version 5.79 (released in February 2021) or later is required.
The following file types are covered:
- WeiDU installation scripts (*.tp2, *.tpa, *.tph, *.tpp)
- WeiDU translation tables (*.tra)
- Dialogue scripts (*.d)
- Game scripts (*.baf)
This package provides three different flavors of syntax highlighting definitions:
- A set of neutral syntax definitions using the built-in color schemes of the text editor. It can be found in the "syntax" folder. (Preview: dark, light)
- A predefined dark color scheme based on the dark WeiDU color scheme for Notepad++. It can be found in the "syntax-colored-dark" folder. (Preview)
- A predefined light color scheme based on the light WeiDU color scheme for Notepad++. It can be found in the "syntax-colored-light" folder. (Preview)
Place the definition files from the folder of your choice into the directory as specified below. All of the files must be installed together as they cross-reference each other.
Navigate to $HOME/.local/share/org.kde.syntax-highlighting/syntax/
. Create the directory if it doesn't exist. Place the files weidu-tp2.xml
, weidu-baf.xml
, weidu-d.xml
, and weidu-tra.xml
from this package into the folder and restart the text editor.
Navigate to $HOME/.var/app/<package-name>/data/org.kde.syntax-highlighting/syntax/
where <package-name>
specifies the fully qualified package name of the text editor (e.g. org.kde.kate). Create the directory if it doesn't exist. Place the files weidu-tp2.xml
, weidu-baf.xml
, weidu-d.xml
, and weidu-tra.xml
from this package into the folder and restart the text editor.
Navigate to $HOME/snap/package-name/current/.local/share/org.kde.syntax-highlighting/syntax/
where <package-name>
specifies the package name of the text editor. Create the directory if it doesn't exist. Place the files weidu-tp2.xml
, weidu-baf.xml
, weidu-d.xml
, and weidu-tra.xml
from this package into the folder and restart the text editor.
Navigate to %USERPROFILE%\AppData\Local\org.kde.syntax-highlighting\syntax\
. Create the directory if it doesn't exist. %USERPROFILE%
usually expands to C:\Users\<your-user-name>\
. Place the files weidu-tp2.xml
, weidu-baf.xml
, weidu-d.xml
, and weidu-tra.xml
from this package into the folder and restart the text editor.
Navigate to $HOME/Library/Application Support/org.kde.syntax-highlighting/syntax/
. Create the directory if it doesn't exist. Place the files weidu-tp2.xml
, weidu-baf.xml
, weidu-d.xml
, and weidu-tra.xml
from this package into the folder and restart the text editor.
A suitable syntax highlighter is automatically selected if the opened file contains any of the supported file extensions.
- WeiDU TP2:
.tp2
,.tpa
,.tph
, or.tpp
. Select menu Tools > Highlighting > Scripts > WeiDU TP2 to enable the syntax highlighter manually. - WeiDU TRA:
.tra
. Select menu Tools > Highlighting > Other > WeiDU TRA to enable the syntax highlighter manually. - WeiDU D:
.d
. Select menu Tools > Highlighting > Scripts > WeiDU D to enable the syntax highlighter manually. - WeiDU BAF:
.baf
. Select menu Tools > Highlighting > Scripts > WeiDU BAF to enable the syntax highlighter manually.