question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable/Skip HTML single-line comment

See original GitHub issue

I 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:closed
  • Created 10 years ago
  • Reactions:8
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
bitwisemancommented, Sep 30, 2014

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.

3reactions
stevgouwscommented, Oct 8, 2016

Hi any news on if this option will be added? Would be great. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found