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.
Is possible to perform the same action for HTML code? If yes, how?
If we want to comment out a block of code in NetBeans IDE, we can simply use [ctrl]+[shift]+[c] . First we want to select block of code & then apply [ctrl]+[shift]+[c] on it. To remove comments, we can use same key combination.
In HTML, a comment is text enclosed within < ! ╌ ╌> tags. This syntax tells the browser that they are comments and should not be rendered on the front end. Thanks to the comments tag, you can leave notes to remind yourself where you left off in the build process.
Try this combination in the Netbeans Editor: ctrl + shift + c.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With