custom profile/keywords for gs:set-syntax

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
ptroev
Posts: 6
Joined: Sun Nov 16, 2008 2:47 am

custom profile/keywords for gs:set-syntax

Post by ptroev »

please consider subj for gs:text-pane,
it could be useful for editing langs other than lsp, c, cpp, java, php
or, maybe, you, could, please, just, add support for abap/4

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Currently gs:set-syntax only handles .lsp, .java, .c, .cpp, .h and .php extensions.

There are about a hundred languages in use, so I opted to support only a few popular of them, and I would agree that any selection is subjective.

The last four: C, CPP, JAVA and PHP belong all to the same familiy of C-syntax languages and can be handled using the file SyntaxHighlighterC.java in the guiserver subdirectory of the source distribution. Only a set of keywords has to be added.

Unfortunately ABAP seems not to be one of the C-syntax languages and would need a special treatment, like Lisp did too. Why not do it yourself ;-)

Locked