Syntax highlight files for linux

Howdy,

As an avid Linux user, I have created a syntax highlighting definition file for gedit (gtksourceview) and tweaked the syntax file for kate as well.

In the kate file, I’ve added code to allow for code folding on object definitions and highlight included message parameters (such as ‘{I} {am} not tired.’) and html tags, embedded routines (such as ‘I have <<moneybags.count()>> money bags’).

The gedit version doesn’t do the code folding, and I basically rewrote the c language definition file, but put in the TADS keywords instead).

The kate file has to go into the katepart folder (usually under /usr/share/kde4/apps/katepart/syntax) or in your local .kde4 directory.

The gedit file has to go into the language-specs folder (usually under /usr/share/gtksourceview-3.0/language-specs) (will also work in gtksourceview-2.0/language-specs)

Kate version download: http://www.gerynarsabode.org/Downloads/tads3.xml
GEdit version download: http://www.gerynarsabode.org/Downloads/tads3.lang

(you might have to right-click and select ‘Download’ as these are XML files, and your browser may just want to show the file instead of downloading)

Hey,
I’ve slightly tweaked the kate-syntax-file for tads3, for only opening brackets in valstrings, eg. ‘{’, which disarranged the highlighting in some library-code.
Attatched in case somebody else finds some use for it.
tads3.xml (8.49 KB)