-
Notifications
You must be signed in to change notification settings - Fork 103
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
Mixing Blade and HTML Comments #43
Comments
I can look into this but is there really a need to do this? If you want to have HTML comments like that just put them before blade. |
In some cases, it is useful to comment an entire block, which might contain HTML comments. Something like... {{-- TODO: add debug output
<div class="debug">
@if (true == false)
Some debug info here
@endif
</div><!-- /.debug -->
--}} Although that said, I did just notice a separate issue where only the first line of a multiline comment will be formatted. |
Alright, I will look into it. |
Thanks! And thanks for all your hard work. |
This pattern will capture comments including multiple lines: However, the first part of the comment It would also appear that anything on the same lines as the brackets are matching other patterns. |
If I place HTML comments inside Blade comments, I lose syntax highlighting.
The text was updated successfully, but these errors were encountered: