Page 1 of 1

custom profile/keywords for gs:set-syntax

Posted: Sun Nov 30, 2008 10:10 am
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

Posted: Sun Nov 30, 2008 1:42 pm
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 ;-)