Y
Y
Yura Storchak2019-12-05 18:55:11
css
Yura Storchak, 2019-12-05 18:55:11

How to comment out the html code, or rather the path through @@include, inside which there are already comments that are needed?

I use the LESS preprocessor + for this I use @@include in HTML for different sections separate files in order to add code from these files to the main html file.
PS 1) I tried it with ctrl + / , it doesn't work, because there are already comments inside the code,
2) I tried it with */ , it doesn't work either, @@include paths are not commented.
3) I searched on Google, but I could not find a simple option so that you could comment on the code, which already has other comments inside
5de9284809fb7752637416.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2019-12-05
@profesor08

No, you'll have to live with it.
In html, nested comments are not possible due to the nature of commenting. If this point is not clear, check and see for yourself.
Highlight the part you want and click ctrl + /to comment out the code. If there are already comments inside, then all of them will be uncommented, then click again and it will comment out everything.
Click on the line you want, press ctrl + /to comment out only that line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question