Highlighted

Hide HTML comments in Dreamweaver 2020?

New Here ,
Dec 07, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by Nancy_OShea | Adobe Community Professional

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

 

Topics

Code, How to

Views

94

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Hide HTML comments in Dreamweaver 2020?

New Here ,
Dec 07, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by Nancy_OShea | Adobe Community Professional

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

 

Topics

Code, How to

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Dec 07, 2019

Copy link to clipboard

Copied

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

 

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Dec 07, 2019

Copy link to clipboard

Copied

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>

Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Dec 08, 2019

Copy link to clipboard

Copied

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

 

 

 

 

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Learn Resources
Add a group