Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add User-defined keywords in HTML #246

Closed
DomOBU opened this issue May 3, 2024 · 3 comments
Closed

Add User-defined keywords in HTML #246

DomOBU opened this issue May 3, 2024 · 3 comments
Labels
html Caused by the hypertext lexer

Comments

@DomOBU
Copy link

DomOBU commented May 3, 2024

Hello,

I use Notepad++.
This software uses Lexilla.

In Notepad++, it is possible for CSS and JS to define "User-defined keywords" for certain styles.

For HTML, this feature does not exist. The moderator of the Notepadd++ site tells me that this is a Lexilla limitation.
Are there any plans to add this functionality for HTML in Lexilla ?
This would be a major step forward and would ensure that Notepad++ does not lag behind other web-oriented source code software.

@nyamatongwe
Copy link
Member

Recent release 5.3.2 included:

HTML: Implement substyles for tags, attributes, and identifiers SCE_H_TAG, SCE_H_ATTRIBUTE, SCE_HJ_WORD, SCE_HJA_WORD, SCE_HB_WORD, SCE_HP_WORD, SCE_HPHP_WORD.
HTML: Implement context-sensitive attributes. "tag.attribute" matches "attribute" only inside "tag".

@nyamatongwe nyamatongwe added the html Caused by the hypertext lexer label May 3, 2024
@mpheath
Copy link
Contributor

mpheath commented May 4, 2024

What is "Default keywords" and "User-defined keywords"? It is a Notepad++ feature that joins 2 keyword lists into 1 keyword list to be passed on to Lexilla.

This image is C++ styling for INSTRUCTION WORD in Notepad++'s Style Configurator.

npp_userdefinedkeywords

HTML does not have "Default keywords" and "User-defined keywords" anywhere available in Notepad++'s Style Configurator. This is not a limitation of Lexilla, rather an incomplete feature of Notepad++ regarding HTML.

IMO, this issue does not belong here. It started in a Notepad++ forum post and is an issue related to Notepad++.

@nyamatongwe
Copy link
Member

Closing as appears to really be a Notepad++ issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html Caused by the hypertext lexer
Projects
None yet
Development

No branches or pull requests

3 participants