How to do HTML comments in NetBeans

爱⌒轻易说出口 提交于 2019-12-12 08:49:55

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/10330739/how-to-do-html-comments-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!