[scintilla:bugs] #464 Missing state for VBScript operators in LexHTML

0 views
Skip to first unread message

Zufu Liu

unread,
Apr 8, 2022, 10:37:47 PM4/8/22
to scintill...@googlegroups.com
  • labels: Scintilla --> Scintilla, lexilla, html, vb

[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran
Last Updated: Sun Aug 06, 2006 09:42 AM UTC
Owner: Neil Hodgson

LexHTML does not define any specific state for
operators inside a VBScript section (i.e. something
like SCE_HJ_SYMBOLS and SCE_HJA_SYMBOLS).
For that purpose, I have added two more states
(SCE_HB_OPERATOR and SCE_HBA_OPERATOR).
In the attached zip, you can see the files I have
changed from release 1.70.


Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Zufu Liu

unread,
Dec 8, 2025, 5:57:52 AM12/8/25
to scintill...@googlegroups.com

Maybe this (adding SCE_HB_OPERATOR and SCE_HBA_OPERATOR) can be implemented now as more styles can be used and VBScript is dead, so it's no longer need to reserve styles.


[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran

Last Updated: Sat Apr 09, 2022 02:37 AM UTC
Owner: Neil Hodgson

Neil Hodgson

unread,
Dec 8, 2025, 3:58:08 PM12/8/25
to scintill...@googlegroups.com

SCE_HB_OPERATOR isn't needed if client-side VBScript is removed.

Reclaiming the client-side VBScript and client-side Python style IDs needs a plan and possibly a separate new lexer.

There still appears to be some use of server-side VBScript so I don't know if that can be removed.


[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran

Last Updated: Mon Dec 08, 2025 10:57 AM UTC
Owner: Neil Hodgson

Zufu Liu

unread,
Dec 9, 2025, 5:46:59 AM12/9/25
to scintill...@googlegroups.com

SCE_HB_OPERATOR isn't needed if client-side VBScript is removed.

keep sync client/server side VBScript styles just to make the lexer simple.

Reclaiming the client-side VBScript and client-side Python style IDs needs a plan and possibly a separate new lexer.

for backward compatibility reason, they probably needs to be kept for a while.

possibly a separate new lexer.

Current HTML lexer can be separated by server side languages or template:
1. A base HTML/XML lexer that contains SGML, tag, JavaScript and CSS. i.e. current lexer without VBScript and server side or template handling.
2. ASP (JavaScript or VBScript) lexer: current lexer without PHP, Python and template, simplify SGML handling (only need to handle DOCTYPE).
3. PHP lexer, base HTML (DOCTYPE only SGML) with PHP highlighting.
4. JSP lexer, base HTML with Java (currently treated as JavaScript) highlighting.
5. lexers for each template (ASP.NET Razor C#, ASP.NET Razor VB.NET, Django, Mako, etc.)


[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran

Last Updated: Mon Dec 08, 2025 08:58 PM UTC
Owner: Neil Hodgson

Neil Hodgson

unread,
Dec 9, 2025, 4:36:14 PM12/9/25
to scintill...@googlegroups.com

Modularising the HTML lexer would be a worthwhile project. It needs a good configurable way of crossing from base to server and return. The state for the base lexer will be separate from the server state and both need to coordinated with attaching to lines and saving for future calls.

As well as determining styles, fold level may also be affected by both. It may be better to separate fold determination into a separate pass as is done by most languages.

Separating out the processing of client side JavaScript and CSS from base HTML would also improve maintainability and new feature implementation.


[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran

Last Updated: Tue Dec 09, 2025 10:46 AM UTC
Owner: Neil Hodgson

Zufu Liu

unread,
Dec 10, 2025, 7:30:49 AM12/10/25
to scintill...@googlegroups.com

Modularising the HTML lexer

Will do some experiments later, as I already made a separated PHP lexer (with complete PHP styling, more JavaScript styles, also basic CSS highlighting) at https://github.com/zufuliu/notepad4/blob/main/scintilla/lexers/LexPHP.cxx

Rewrite the lexer or new lexers with StyleContext would improve readability and maintainability, but this may slow down loading large program generated HTML/XML file.


[bugs:#464] Missing state for VBScript operators in LexHTML

Status: open
Group: Cosmetic
Labels: Scintilla lexilla html vb
Created: Fri Aug 04, 2006 08:19 AM UTC by Nicola Civran

Last Updated: Tue Dec 09, 2025 09:36 PM UTC
Owner: Neil Hodgson

Reply all
Reply to author
Forward
0 new messages