How to make HTML comments in NetBeans

In NetBeans for javascript and php files / code, you can easily comment on lines of code by simply selecting them and then clicking the comment button, as shown in this figure.

enter image description here

Is it possible to perform the same action for HTML code? If so, how?

+6
source share
1 answer

To comment on the html code (and javascript / php code), select the section of code you want to comment on and use Ctrl + Shift + C ( Cmd + Shift + C for Mac). For html code, this adds <!-- --> tags around your code.

To uncomment, select the commented code and use the same shortcut on the keyboard. This will remove the comment tags.

+16
source

Source: https://habr.com/ru/post/914205/


All Articles