[Gambas-user] New experimental highlighting component
Benoît Minisini
benoit.minisini at gambas-basic.org
Tue Oct 24 16:38:45 CEST 2023
Le 24/10/2023 à 16:26, Brian G a écrit :
>
> Hi Benoit,
>
> Will the toconsole function remain the same as the gambas highlight, or will it be moved to the new file based implementation.
It will remain the same, except that there are some enhancements in the
new highlighting that will need some code modifications.
For example, there is now support for highlighting recursivity
(javascript inside a string inside javascript inside HTML) up to four
levels that is indicated with a gray background.
>
> I wonder of the compilation of the highlight definition files will be cached after the initial compilation. for subsequent use.
The highlight definition is compiled once at each program start (the
first time it is needed). The delay should be barely noticeable.
>
> This is really a great thing, I have also wanted to create custom highlighting for some of my projects.
>
You can already try the alpha code and create your own highlighting if
you want to test.
Regards,
--
Benoît Minisini.
More information about the User
mailing list