Skip to main content
New Participant
December 7, 2019
Answered

Hide HTML comments in Dreamweaver 2020?

  • December 7, 2019
  • 2 replies
  • 689 views

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

This topic has been closed for replies.
Correct answer Nancy OShea

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

 

2 replies

BenPleysier
Braniac
December 8, 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!
Nancy OShea
Braniac
December 8, 2019

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

 

 

 

 

Nancy O'Shea— Product User, Community Expert &amp; Moderator
Nancy OShea
Nancy OSheaCorrect answer
Braniac
December 7, 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 &amp; Moderator