Skip to main content
Participating Frequently
November 23, 2016
Question

@media code coloring in Dreamweaver 2017 - no longer colored

  • November 23, 2016
  • 3 replies
  • 3568 views

Among the many surprises I found in the new DW (including Live view and Live code being on by default, apparently) I discovered that my carefully edited code coloring in CSS (and possibly in HTML and PHP, but I haven't got that far) has been completely scrambled.

I followed the tutorial on how to change the colors by editing the Theme's main.less.css file, which I guess it's barely sufferable but Ok.

One thing I haven't been able to affect so far is the code coloring of the @media statements.

Old Dreamweaver by default colored @media statements and its closing tag with a dark brown, bold font. Beside that I got used to it, it made my life a lot easier and kept errors down because I really couldn't miss the @media visually. Now that has changed and I haven't been able to find how to affect it in the main.less.css file.

For those that are not aware of how it worked, let's take this example:

@media only screen (min-device-width : 320px) {
        #web_logo img {width: 70%;}
}

Dreamweaver used to use a Dark Brown to indicate the entire @media, including the closing tag, like this:

@media only screen (min-device-width : 320px) {
          #web_logo img {width: 70%;}
}

How do I recreate that effect? I see no mention of @media in the css file and I have no idea of how to add my own.

I read several tutorials but they all focused on changing the color of existing code. If the @media is there (and not only the @media, but the entire line) I have no idea how it is called. Google was no help on the matter.

Thank you for your help.

PS: Why does the window jump around in this forum? It's constantly resizing and bouncing around. Selecting text to edit it or correct a spelling wrror is like playing space invaders with my mouse.

    This topic has been closed for replies.

    3 replies

    Legend
    December 19, 2016

    It doesn't look like they have included the Brackets mode-aware styles in the less theme file for code colouring, code colouring according to a file type is NOT the same thing.

    Paul-M - Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    November 24, 2016

    I'm pretty sure the main.less file uses the same color for matching brackets { { } } throughout.

    I have not done extensive work yet with the Token Inspector described below.  Maybe after the Thanksgiving Holiday, I'll have more time.

    Learn how you can customize the colors of your code elements in Dreamweaver.

    In the meantime, the theme I grabbed from GitHub called RubyBlue, expresses brackets in these selectors.

    .CodeMirror-matchingbracket {

            color: @rb-magenta !important;

            background-color: transparent;

    }

    .cm-meta,.cm-keyword,.cm-bracket {

        color: @rb-magenta;

    }

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Legend
    November 23, 2016

    The code colouring is limited - for example you can't have language specific code colouring. The joke of all this is that brackets make use of something mode-aware colour coding but for some reason the Brackets integration in Dreamweaver doesn't have this feature! As usual the Adobe developers have made a mess of Dreamweaver and taken more useful features away and added buggy new features. If you want to make a vote for better code colouring options, see here:

    Bring back custom code coloring. – Adobe Dreamweaver CC: Feature Ideas

    Paul-M - Community Expert
    Participating Frequently
    November 28, 2016

    I posted in that thread already. I am so furious with these jokers, I can barely contain myself.

    Luckily, I remembered that there was a way to install older versions of the Adobe cloud app, and sure enough I went to the Creative Cloud app "Find additional Apps", and there I found DW 2015. I am installing it now and hopefully I can put this nightmare behind me.

    It's obvious these guys have rocks for brains. How do you release a major code editor without code coloring? I might as well use notepad at that point.

    What's next? Getting rid of page wrap? Call every menu item "Generic feature"? How about black text on black background? The ultimate minimalist approach.

    And don't get me started on that "TokenInspector" piece of crap.

    But after all, it is Dreamweaver we are talking about here.  The application that won't let you search inside .ini files unless you go mess around with its core files. Like the folks at Adobe never heard of .ini, .md or other files that these days are all over the place.

    I used to have to add those files in the search manually, but I got tired of it and now I just use Notepad++. Now I have it set up with FTP, projects, etc. and I am starting to think that the money I give Adobe every month could be better used to buy a couple of cases of Mexican Coca Cola instead.

    Preran
    Community Manager
    Community Manager
    November 29, 2016

    I apologize for your frustration. The product team is looking to improve the experience in a future update until which you can continue using the previous version. Am sorry that this experience has been so disruptive for you.