underscore666
underscore666

Reputation: 1739

How to do HTML comments in NetBeans

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

enter image description here

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

Upvotes: 6

Views: 10026

Answers (1)

Jonathan Spooner
Jonathan Spooner

Reputation: 7752

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

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

Upvotes: 17

Related Questions