conky syntax highlighting for kate

Text Editors

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

Conky configuration files can be rather difficult to read. Unfortunately Kate ships without an highlighting scheme for conky. Also in the net I could not find one. Therefore I created my own. It is my first highlighting scheme for Kate, and certainly not perfect. However I think it is good enough and much better than having no syntax highlighting at all for conky configs.

The screenshot shows in the upper split window an example of an conky configuration being highlighted and in the lower split window the xml file that does it.

Installation:

- just copy conky.xml into /usr/share/katepart5/syntax/ and restart Kate.
[ If that directory does not exist on your system, just find the directory with all the highlighting files for Kate and put it in there. Perhaps useful for locating this directory: in there are files like ansforth94.xml, doxygenlua.xml and literate-curry.xml.]

Probably also some path in your home folder would be a viable choice, but I have not tested that and therefore cannot vouch for that. Perhaps create a folder ~/.local/share/kate/syntax and put it there? I just dont know.

Some points about this highlighting scheme:

- afair I never used the extension .conky for any of my conky configuration files ;-) But as it makes sense this is the only extension configured in conky.xml. Should you need other extensions to be triggered by this highlighting scheme, just open conky.xml in Kate and make the changes. Its pretty self-explaining. But:
- you can also just open a conky config file in Kate and choose the conky highlighting for that file. Kate will remember that setting (for this file).

- the colors are in no way hardcoded. That means that Kate looks into your settings which color you usually use for comments, keywords etc. and uses them. The colors in the screenshot therefore are irrelevant.

- you can adjust any color setting in the kate settings, and yes, specifically for this highlighting scheme.

Have fun and feel free to improve.
Last changelog:

3 years ago

v 0.8 - initial release

Be the first to comment

3 years ago

v 0.8 - initial release

12345678910
product-maker Count:2 Rating: 5.00
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.8
updated Sep 08 2015
added Sep 08 2015
downloads today
0
page views today 1
System Tags app software
+