Skip to main content
Participant
Dec 7, 2019 6:10 PM UTC
Answered

Hide HTML comments in Dreamweaver 2020?

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 is closed to new replies. Start a new post to keep the conversation going.
Nancy OShea
Nancy OSheaCorrect answer
Community Expert
Dec 7, 2019 7:06 PM UTC

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

3 replies

BenPleysier
Community Expert
Community Expert
Dec 8, 2019 2:43 AM UTC

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>
Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
Dec 8, 2019 8:35 PM UTC

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

 

 

 

 

Translate
Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
Dec 7, 2019 7:06 PM UTC

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

 

Translate
Nancy O'Shea— Product User & Community Expert