Linked Questions
13 questions linked to/from Are nested HTML comments possible?
27 votes
7 answers
20k views
HTML nested comments [duplicate]
Assuming some HTML like this... <section> <h1>Some stuff</h1> <!-- That was some stuff... --> </section> I add comment tags around the HTML I want to comment out. I ...
2323 votes
26 answers
1.3m views
Comments in Markdown
How do you write a comment in Markdown, i.e. text that is not rendered in the HTML output? I found nothing on the Markdown project.
53 votes
6 answers
17k views
CSS Nested Comments
Is there any way to nest comments in CSS? For example, when I try to comment out the following two statements, the outer comment ends when it encounters the */ in the nested comment, leaving the rest ...
33 votes
7 answers
30k views
HTML comments within comments?
Is there a way to comment multiple lines... which already have some comments in them? i.e. <html> <!-- Multi-line comment begin <head> <!-- This script does abcxyz --> ...
19 votes
2 answers
38k views
Regex matching between two strings?
I can't seem to find a way to extract all comments like in following example. >>> import re >>> string = ''' ... <!-- one ... --> ... <!-- two -- -- --> ... <!-- ...
20 votes
3 answers
5k views
Why do many languages not support nested block comments?
In most the languages I use, you simply cannot nest block comments, because the first occurrence of the "close" comment syntax closes the comment even if it was only an "inner" ...
4 votes
2 answers
6k views
How do I nest HTML comments?
This is a very simple question but it has irritated me. I would like to comment the following for example: <!-- {if $scenes} <!-- Scenes --> {include file="$...
0 votes
5 answers
1k views
Remove a part of string via first and last character?
I am getting a HTML string as a result of querying a remote XML feed. I use the result to set text to a TextView. The problem is that a string contains HTML comment tags which are not supported by the ...
1 vote
1 answer
1k views
How to use wrap comment in HTML
Sample structure: <div>1111111111</div> <!-- First line --> <div>2222222222</div> <!-- Second line --> <div>3333333333</div> <!-- Third line --> ...
5 votes
1 answer
939 views
How can I make VS Code support commenting a selection of HTML that already contains a comment in a way that emulates nesting?
When I select multiple HTML line that already has a single comment in it and use Ctrl + / in VS Code, the behavior seem to be broken. See GIF: This would work in JavaScript: Does anyone know a way ...
0 votes
2 answers
233 views
Placing HTML comment tags within HTML comment tags
So, this is probably a very specific use case, but here we go. I'm helping a company who is sending a section of HTML code out to a group of us, where we will be taking data from an excel sheet, and ...
-1 votes
4 answers
316 views
How to Properly Comment Out Multiple Lines in HTML When Content Contains -->
I’m working on an HTML document where I need to comment out multiple lines of code. However, the issue arises because some of the lines already contain the sequence -->, which causes the browser to ...
0 votes
1 answer
114 views
How to ignore a part of html code that has already ignore in it [duplicate]
<body> 1 <br/> 2 <br/> <!--3--> <br/> 4 </body> In this example I want to ignore all the code from 1 to 4 as I did with 3 without removing 3 ignore tag.