On 9/8/2024 12:12 PM, Wolfgang Schuster wrote:
Hans Hagen via ntg-context schrieb am 28.08.2024 um 20:18:
On 8/28/2024 5:06 PM, Henning Hraban Ramm wrote:

There’s also the scite module that uses SciTE’s lexers for syntax highlighting. The builtin highlighters are limited to TeX/ConTeXt, MetaPost, Lua and XML.
They are actually just lpeg lexers that we made for use in scite so no scite installation is needed.

Which highlighter should extended when support for additional languages is needed, the built-in one or the scite version?
probably easiest is the built in but if one wants to nest them then the scite ones are aeasier (in a way the scite ones are like the built in ones but they provide data structures that accomodate scite and as a side effect i then added nexting)

for most languages the simple ones are good enough (no need to have real parsers, just coloring keywords an dspecial symbols)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to