newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: ptroev on November 30, 2008, 02:10:03 AM

Title: custom profile/keywords for gs:set-syntax
Post by: ptroev on November 30, 2008, 02:10:03 AM
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
Title:
Post by: Lutz on November 30, 2008, 05:42:34 AM
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 ;-)