How to make HTML code inactive with comments

后端 未结 7 1003
慢半拍i
慢半拍i 2020-12-15 06:00

I have some HTML code on a page that I don\'t want to erase, but make inactive for the short term. How can I make the browser ignore parts of the page in the same way the

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 06:35

    If you are using Eclipse then the keyboard shortcut is Ctrl + Shift + / to add a group of code. To make a comment line or select the code, right click -> Source -> Add Block Comment.

    To remove the block comment, Ctrl + Shift + \ or right click -> Source -> Remove Block comment.

提交回复
热议问题