Disable/Skip HTML single-line comment
See original GitHub issueI usually have a comment after the closing html tag in order to identify the tag on big files with a lot of tags.
Input:
<div class='panel'>
...
</div><!-- /.panel -->
Current output:
<div class='panel'>
...
</div>
<!-- /.panel -->
Desired output:
<div class='panel'>
...
</div><!-- /.panel -->
It would be nice if it would be able skip those single-line comments.
Issue Analytics
- State:
- Created 10 years ago
- Reactions:8
- Comments:13 (5 by maintainers)
Top Results From Across the Web
How to make HTML code inactive with comments
To make a comment line or select the code, right click -> Source -> Add Block Comment. To remove the block comment, Ctrl...
Read more >How to Comment & Comment Out in HTML - HubSpot Blog
To “comment out” in HTML, simply place the < !╌ ╌> tags around the code you want to hide. These tags will tell...
Read more >Disable with comments — yamllint 1.28.0 documentation
To prevent yamllint from reporting problems for a specific file, add the directive comment # yamllint disable-file as the first line of the...
Read more >How to disable ESLint for some lines, files or folders
To turn it back on you should use the block comment /* eslint-enable */ . /* eslint-disable */ console.log('JavaScript debug log'); ...
Read more >MySQL Comments - W3Schools
Comments are used to explain sections of SQL statements, or to prevent ... The following example uses a single-line comment to ignore the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re not going to do a regex array (sorry folks, that’s just crazy town frolics), but having single line html comments not get moved to a new line sounds totally reasonable.
Hi any news on if this option will be added? Would be great. Thanks.