https://github.com/dohliam/pmwiki-kate
PmWiki markup syntax highlighter for Kate editor/KatePart
https://github.com/dohliam/pmwiki-kate
editor-plugin kate kate-editor kde markup pmwiki syntax-highlighting
Last synced: 4 months ago
JSON representation
PmWiki markup syntax highlighter for Kate editor/KatePart
- Host: GitHub
- URL: https://github.com/dohliam/pmwiki-kate
- Owner: dohliam
- Created: 2016-03-30T17:55:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T02:28:52.000Z (about 7 years ago)
- Last Synced: 2025-03-21T14:40:30.926Z (about 1 year ago)
- Topics: editor-plugin, kate, kate-editor, kde, markup, pmwiki, syntax-highlighting
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pmwiki-kate - PmWiki markup syntax highlighter for Kate editor/KatePart
The XML file in this repository (`pmwiki.xml`) contains rules for highlighting the syntax of [PmWiki](http://www.pmwiki.org/) markup files in [Kate](http://kate-editor.org/), the default text editor for [KDE](https://www.kde.org/). This can be helpful if you want to edit wiki pages offline before saving them to PmWiki, and is similar to the existing syntax highlighter for MediaWiki.
Once [installed](#installation), opening any file with the `.pmwiki` extension should automatically highlight PmWiki syntax as in the example below:

This highlighter works fine with Kate or [Kwrite](https://www.kde.org/applications/utilities/kwrite/) (which are both based on [KatePart](http://kate-editor.org/about-katepart/)), and should also work with any version of PmWiki.
## Installation
Steps to install the PmWiki syntax highlighting file:
1. Download the file `pmwiki.xml` or clone this repository
2. Find the folder `~/.kde/share/apps/katepart/syntax/` on your system (create it if it does not already exist)
3. Move `pmwiki.xml` into `~/.kde/share/apps/katepart/syntax/`
4. Open or restart Kate to use the syntax highlighter.
Default syntax highlighting files for Kate are usually stored in the folder `/usr/share/kde4/apps/katepart/syntax/`. However, custom syntax highlighters should probably be saved in the local syntax highlighting folder (`~/.kde/share/apps/katepart/syntax/`) in the user's home directory so that they don't get accidentally overwritten during an update.
NOTE: The above applies to KDE 4. If you are using Plasma 5, the local folder for Kate syntax files has changed to `~/.local/share/katepart5/syntax/`.
## Usage
Files with the extension `.pmwiki` will automatically be highlighted using the rules in `pmwiki.xml`. Plain text or other files can be forced to use PmWiki highlighting rules by selecting _PmWiki_ from the _Highlighting_ menu:
* __Tools__ > __Highlighting__ > __Markup__ > __PmWiki__
## License
Based on [kate-markdown](http://github.com/claes/kate-markdown/) by [Claes Holmerson](http://github.com/claes/).
Dual-licensed under both GPL and BSD licenses.