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

Feature request: syntax highlighting for hyperscript #170

Open
ghost opened this issue Mar 3, 2024 · 3 comments
Open

Feature request: syntax highlighting for hyperscript #170

ghost opened this issue Mar 3, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request syntax highlight

Comments

@ghost
Copy link

ghost commented Mar 3, 2024

No description provided.

@SpartanJ SpartanJ self-assigned this Mar 5, 2024
@SpartanJ SpartanJ added the enhancement New feature or request label Mar 5, 2024
@SpartanJ
Copy link
Owner

SpartanJ commented Mar 8, 2024

What kind of special syntax highlighting is necessary? AFAIK HTMX implements special attributes over the HTML, but that does not need anything special to be handled. You mean highlight differently "hx-" attributes?
For hyperscript I can see what could be added (special syntax highlighting for the "_" attribute).
Do you have any example I can learn from?

@ghost
Copy link
Author

ghost commented Mar 8, 2024

This is how htmx and hyperscript highlight their own code:

https://htmx.org/docs/

https://hyperscript.org/docs/

Note for hyperscript: scroll down a bit and you will see the extension for VSCode and Sublime Text.

@SpartanJ
Copy link
Owner

SpartanJ commented Mar 8, 2024

https://htmx.org/docs/

That's why I'm asking, there's nothing special, is plain HTML and looks just fine in ecode.

@SpartanJ SpartanJ changed the title Feature request: syntax highlighting for htmx and hyperscript Feature request: syntax highlighting for hyperscript Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syntax highlight
Projects
None yet
Development

No branches or pull requests

1 participant