conky syntax highlighting for kate 0.8

Niccolo Licht NiccoloLichtistschwer at ok.de
Tue Sep 8 19:26:16 UTC 2015


Name: conky syntax highlighting for kate
Version: 0.8
Type: KDE Text Editor
Depend: 
License: LGPL
Homepage: 
More Info:
http://kde-apps.org/content/show.php?content=171319

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. 






JOB RECOMMENDATION:

more jobs: http://KDE-Apps.org/jobs/




More information about the Kde-announce-apps mailing list