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

HTML comment ligature bang does not align with followup lines #1631

Open
valler opened this issue Jan 23, 2025 · 0 comments
Open

HTML comment ligature bang does not align with followup lines #1631

valler opened this issue Jan 23, 2025 · 0 comments

Comments

@valler
Copy link

valler commented Jan 23, 2025

It would be nice if the exclamation marks aligned:

<!--
 ! Hello world!
 ! This is a comment.
 !-->

Similar to how C-style comments align the asterisk for certain types of comments:

/*
 * Hello world!
 * This is a comment.
 */

Fira unfortunately breaks the alignment for HTML-style comments written this way.

This is about the starting <!-- specifically. As of now I haven't thought about !--> (with a space before the bang), because it does not misalign.

This comment style can for example be found in the source of the HTML specs repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant