如何在NetBeans中进行HTML注释 [英] How to do HTML comments in NetBeans

查看:304
本文介绍了如何在NetBeans中进行HTML注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在NetBeans中,对于javascript和php文件/代码,只需选择它们,然后单击如图所示的注释按钮,就可以轻松注释代码行.

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.

是否可以对HTML代码执行相同的操作?如果是,怎么办?

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

推荐答案

要注释掉html代码(和javascript/php代码),请选择要注释掉的代码部分,然后使用 Ctrl + Shift + C (对于Mac, Cmd + Shift + C )键盘捷径.对于html代码,这会在代码周围添加<!-- -->标记.

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.

这篇关于如何在NetBeans中进行HTML注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆