ScintillaGadget and web language
Posted: Mon Jan 12, 2026 8:56 am
Hello at all
Since several days, i try to create an editor for web language
I believed, that is not also hard than another language, but i have see i'm wrong
The problem is in fact web language are not one simple language like PB, C, etc.. But four languages together
Then for the syntax coloring, it's a hell
Because detecting the keywords of the four languages and coloring each one, not wotks, some words exists in several languages
Furthermore for the folding it's not also simple too, because the end keyword is the same that several other
If => } and function => } so detecting the } is not enough a } can close the FUNCTION then it's a } for a IF
Then i have thinking to try to parsing the code before, for separate the 4 languages and after coloring each part, for finally remix the 4 part
At your advice, is it the best way for do that ?
Or is it possible to coloring all in one time
Have a good day
Since several days, i try to create an editor for web language
I believed, that is not also hard than another language, but i have see i'm wrong
The problem is in fact web language are not one simple language like PB, C, etc.. But four languages together
Then for the syntax coloring, it's a hell
Because detecting the keywords of the four languages and coloring each one, not wotks, some words exists in several languages
Furthermore for the folding it's not also simple too, because the end keyword is the same that several other
If => } and function => } so detecting the } is not enough a } can close the FUNCTION then it's a } for a IF
Then i have thinking to try to parsing the code before, for separate the 4 languages and after coloring each part, for finally remix the 4 part
At your advice, is it the best way for do that ?
Or is it possible to coloring all in one time
Have a good day