|
From: Jaime V. <vi...@fe...> - 2025-07-08 19:44:48
|
On 08/07/25 16:50, Robert Dodier wrote: > I cobbled together a syntax highlighting package by adapting some > existing colorization scheme (I forget which one). The major issue is > probably the list of keywords which are considered built-in. I've just run across a very simple syntax highlighter that works better: our own bug tracking system in Sourceforge. Look at the example in the attached file; "set_plot_option" and "plot2d" were identified as function names, but "sin" was not; if I had written sin(x) I guess it would had become blue. The highlighter should not look for keywords but rather for function names even if those names are not in any list of keywords. Regards, Jaime |