Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Hide HTML comments in Dreamweaver 2020?

New Here ,
Dec 07, 2019 Dec 07, 2019

I'm looking to hide HTML comments in the Dreamweaver code view. Sometimes I will have a lot of comments and I would like to view the code without the comments. I do not want to remove the comments, only temporarily hide them. I'm using Dreamweaver 2020.

 

Thanks,

Logan

TOPICS
Code , How to
611
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 07, 2019 Dec 07, 2019

There is nothing built-in to DW that hides comments.  You would need to create your own extension for that. 

 

Translate
Community Expert ,
Dec 07, 2019 Dec 07, 2019

There is nothing built-in to DW that hides comments.  You would need to create your own extension for that. 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2019 Dec 07, 2019

If you have a server side language like PHP, you could do the following

<h1>Fancy display heading</h1>
<?php // This is a remark that will not be shown, ever ?>
<p>A nice paragraph</p>
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2019 Dec 08, 2019
LATEST

PHP comments don't appear in browsers but they are displayed in DW Code View.

 

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines