Skip to main content
Participant
October 22, 2017
Answered

How to Hide Comments in Dreamweaver cc 2017?

  • October 22, 2017
  • 2 replies
  • 1047 views

Hi, I have been using Dreamweaver CS6 for a long time and now at my place of work they have updated to Dreamweaver cc 2017. In CS6 there was an option whereby you could hide comments and for example a comment like this one in a jsp file would show up as grey. Ex: <%-- This is a comment --%> .

In Dreamweaver cc 2017 the same comment now shows as <%-- This is a comment --%> .

This is very confusing as now it is the same color as <p> or other html code. Any one knows a way how to hide these comments or make them appear as grey.

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

    Change your code color Theme in Preferences.  Or edit your current theme's main.less file in code view.   See screenshots.

    Save. changes to main.less file and close.

    Nancy

    2 replies

    Participant
    October 24, 2017

    I have the same issue on my Dreamweaver CC 2017.

    When using <%-- code --%> in a jsp file to hide some code, they are not being greyed out as they should be. I have checked the .cm-comment and the colour is grey.

    Is there a way how to check what .cm-comment does represent? eg. //, /*, <!-- etc. to check if <% -- is included in this list.

    Thanks

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    October 22, 2017

    Change your code color Theme in Preferences.  Or edit your current theme's main.less file in code view.   See screenshots.

    Save. changes to main.less file and close.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    aquarod78Author
    Participant
    October 23, 2017

    Hi

    So in my Dreamweaver I do not have the feature you showed me. Maybe because I am using a corporate license. (See Picture 1)

    Therefore I went in my C: and amended the file directly. (Pictures 2 & 3 below) but  still it did not work since the code is still showing as blue and not grey. Is there another method please?  Thanks.

    Code still the same:

    Picture 1

    Picture 2

    Picture 3

    Nancy OShea
    Community Expert
    Community Expert
    October 23, 2017

    No pictures came through.  This web forum doesn't support email attachments.

    Nancy O'Shea— Product User & Community Expert