Skip to main content
Inspiring
May 24, 2017
Answered

HOW TO REMOVE ORANGE CODE HIGHLIGHTING

  • May 24, 2017
  • 16 replies
  • 25400 views

How do I stop this moronic orange highlighting from appearing.

Thank you for deleting my previous question. Apparently you do not mind being idiots but you do not like people making the observation...

How do I stop this moronic orange highlighting from appearing when I click a <P or <TD etc?

I have tried the "main.less"
I have tried the "brackets.json"

And I have spent several hours trying everything else.

PLEASE ONLY POST IF YOU KNOW.

DO NOT ASK me stupid questions like "Have I tried VIEW > CODE > SYNTAX COLORING" because you obviously do not know.

Thank you

This topic has been closed for replies.
Correct answer STOP-SPAMMING-ME

I think that I fixed the problem,

Thank you to all who have helped.

The solution:

Go Here >>

C:\Program Files\Adobe\Adobe Dreamweaver CC 2017\www\main.js

CHANGE THIS

{className:"CodeMirror-matchingtag"}))}var s="close"==o.at?o.open:o.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}

to this (just put any letter on the end of the CodeMirror-matchingtag)

{className:"CodeMirror-matchingtaga"}))}var s="close"==o.at?o.open:o.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtaga"}

Do some creative saving (Make sure that you make a BACK UP COPY FIRST

SAVE as main.js

Reboot DW

problem solved.

over 28 hours wasted on this

16 replies

Inspiring
May 24, 2017

Jon, the css above is when I tried to create a NEW theme.

I also went through the C drive and did a global search for MAIN.LESS and found 10 of them, out of this 5 had the CodeMirror-matchingtag etc which I also changed.

BG == #fff

Color == #000

Still nothing

So I changed the theme and now the orange has changed to a lite blue

Just marvelous...............

Inspiring
May 24, 2017

Jon

// Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

// Style definitions are from
// https://github.com/chriskempson/tomorrow-theme/tree/master/Brackets

/*
* Brackets Default Theme
*
* Defines all the variables that one can configure in a theme. This should
* contain all variables / mixins for UI styling that we want to be able to
* change in a theme.
*
* Throughout the rest of the LESS files we should _only_ use color
* variable names that are on the LHS of the list below. So, if we
* need a new color for some UI element, we should add a variable
* in this file.
*/

/*
  This LESS file contains code coloring configuration and the default colors specified
  in this files have been defined globaly. Which means if a selector defined below is
  being used in multiple document modes then all of those tokens will be colored using
  the color value specified here. In order to control the number of unique colors used,
  selectors are grouped together to distribute a limited number of colors across all
  possible tokens in different document modes.

  For example consider the following HTML snippet -
   ----------------------------------
    <div>
        My Sample content
    </div>
   ----------------------------------

  And the following CSS snippet -
   ----------------------------------
    div {
        color: #00f;
    }
   ----------------------------------

  In CC 2017, in both HTML and CSS doc modes 'div' has been assigned '.cm-tag' selector.
  This implies that if in this LESS file the selector group containing '.cm-tag' is assigned
  a color value '#446fbd', the tag name 'div' in HTML and the selector name 'div' in CSS will
  have the same color. For a more detailed understanding of tokens and selectors being used in
  different language modes, please go though the follwoing helpx page section -

  (https://helpx.adobe.com/dreamweaver/using/customize-code-coloring.html#Understandingselectors)

  However it's possible to specify different color values for these selectors targetting
  different language modes. What needs to be done is identify the tokens what's being used
  in a particular doc mode and target the corresponding selectors by nesting them under the
  MODE selector.

  For example let's take the snippets and case described above. If we want to override the
  default color of tag only in HTML mode, we need to append this selector after the "custom" marker
  in this LESS file.

   ----------------------------------------------
   .HTML {
        .cm-tag {
            color: <custom color here>;
        }
   }
   ----------------------------------------------

   This example can be expanded to include individual selectors or certain selectors grouped together.

   These are the list of popular language modes along with the file extensions which they are associated with. Any of these modes can be used as parent selectors and then the individual token color can be
   nested inside to make sure that we change only the targetted modes coloring.

    ->Groovy(groovy,gradle)
    ->Properties(ini,properties)
    ->CSS(css,css.erb)
    ->SCSS(scss,scss.erb)
    ->Stylus(styl)
    ->JavaScript(js,js.erb,jsm,_js)
    ->JSON(json)
    ->VBScript(vbs)
    ->VB(vb)
    ->XML(xml,wxs,wxl,wsdl,rss,atom,rdf,xslt,xsl,xul,xsd,xbl,mathml,config,plist,xaml)
    ->SVG(svg)
    ->HTML                  (html,htm,shtm,shtml,xhtml,cfm,cfml,cfc,dhtml,xht,tpl,twig,kit,jsp,aspx,ascx,asp,master,cshtml,vbhtml)
    ->EJS(ejs,dust)
    ->Embedded Ruby(erb,html.erb,htm.erb)
    ->JSX(jsx)
    ->C(c,h,i)
    ->C++(cc,cp,cpp,c++,cxx,hh,hpp,hxx,h++,ii,ino)
    ->C#(cs,asax,ashx)
    ->Java(java)
    ->Scala(scala,sbt)
    ->Dart(dart)
    ->PHP(php,php3,php4,php5,phtm,phtml,ctp)
    ->CoffeeScript(coffee,cf,cson,_coffee)
    ->Clojure(clj,cljs,cljx)
    ->Perl(pl,pm,t)
    ->Ruby(rb,ru,gemspec,rake)
    ->Python(py,pyw,wsgi,gyp,gypi)
    ->SASS(sass)
    ->Diff(diff,patch)
    ->Lua(lua)
    ->YAML(yaml,yml)
    ->SQL(sql)
    ->Haxe(hx)
    ->Bash(sh,command,bash)
    ->Haskell(hs)
    ->RDF Turtle(ttl)
    ->Markdown(md,markdown,mdown,mkdn)
    ->Markdown (GitHub)()
    ->LESS(less)
    ->Handlebars(hbs,handlebars)
*/

/* Define some variables used in multiple places */
/* 1. Background color for the code view */
@background: #FFFEFD;
/* 2. Foreground color for the code view (Regular strings or text) */
@foreground: #333333;

/* Code Styling */

.CodeMirror, .CodeMirror-scroll {
    background-color: #ffffff;
    color: @foreground;
}
/* NA */
.CodeMirror-focused .CodeMirror-activeline-background {
    background: #c3c3c3;
}
/* NA */
.show-line-padding .CodeMirror-focused .CodeMirror-activeline-background {
    box-shadow: inset 15px 0 0 0 #000;
}
/* NA */
.CodeMirror-focused .CodeMirror-activeline {
    .CodeMirror-gutter-elt {
        background: rgba(0, 0, 0, 0.2);
        color: #fff;
    }
/* NA */
    .inline-widget .CodeMirror-gutter-elt {
        color: #626262;
    }
}

.cm-atom, .cm-string, .cm-string-2, .cm-hr {color: #1c1ca8;}
.cm-number, .cm-attribute, .cm-plus, .cm-qualifier {color: #ffffff;}
.cm-def, .cm-property {color: #0b8dc6;}
.cm-variable, .cm-variable-2, .cm-variable-3, .cm-operator, .cm-meta, .cm-bracket {color: @foreground;}
.cm-comment {color: #8C8C8C; font-style: italic; }
.cm-error, .cm-minus {color: #7b6546;} /* -------------------- */
.cm-header {color: #87908e;}
.cm-link {color: #1fc6d4; text-decoration: none;}
.cm-rangeinfo {color: #2c9abc;}
.cm-keyword, .cm-builtin, .cm-tag, .cm-quote {color: #8b1a83;}

/* HTML Specific Code Colouring */
.HTML {
  .cm-atom { color: #ffffff; }
  .cm-qualifier { color: #02B173; }
  .cm-property { color: #9b54b8; }
}

/* PHP Specific Code Colouring */
.PHP{
  .cm-meta { color: #e34a4a; }
  .cm-keyword, .cm-operator { color: #009ade; }
  .cm-variable, .cm-property { color: #ffffff; }
  .cm-variable-2, .cm-number { color: #34a553; }
}

/* JavaScript Specific Code Colouring */
.JavaScript {
  .cm-number { color: #02B173; }
  .cm-string { color: #ffffff; }
}

/* CSS, SCSS, LESS Specific Code Colouring */
.CSS, .SCSS, .LESS {
  .cm-atom { color: #ffffff; }
  .cm-def { color: #CE4F4F; }
  .cm-tag, .cm-number  { color: #0b8dc6; }
  .cm-attribute { color: #78A004; }
  .cm-variable-3, .cm-qualifier { color: #02B173; }
  .cm-property { color: #9b54b8; }
}

/* Extra CSS */

.CodeMirror-searching {
    background-color: #ffffff;
    color: #393939 !important;
    &.searching-current-match {
        background-color: #ffffff;
        color: #393939 !important;
    }
}

.CodeMirror-cursor {
    border-left: 1px solid #575757 !important;
}

.CodeMirror-gutters {
    background-color: #ffffff;
    border-right: none;
}
/* sequence numbers */
.CodeMirror-linenumber {
    color: #a7a7a7;
}

/* drag & Select text */
.CodeMirror .CodeMirror-selected {
    background: rgba(199, 199, 199, 0.8);
}

/* drag & Select text, change focus */
.CodeMirror-focused .CodeMirror-selected {
    background: rgba(255, 255, 255, 0.7);
}

/* drag & Select text ,change focus */
.CodeMirror .CodeMirror-selected-codefolding {
    background: rgba(199, 199, 199, 0.8);
}

/* drag & Select text*/
.CodeMirror-focused .CodeMirror-selected-codefolding {
    border: solid 1px rgba(48, 72, 144, 0.6) !important;
    background: rgba(177, 177, 177, 0.5);
    color: #2e2e2e !important;
}

.CodeMirror-overwrite .CodeMirror-cursor {
    border-left: none !important;
    border-bottom: 1px solid #626262;
}

/*
    CodeMirror's use of descendant selectors for certain styling causes problems when editors are
    nested because, for items in the inner editor, the left-hand clause in the selector will now
    match either the actual containing CodeMirror instance *OR* the outer "host" CodeMirror instance.

    TODO (issue #324): We'll still have problems if editors can be nested more than one level deep,
    or if any other descendant-selector-driven CM styles can differ between inner & outer editors
    (potential problem areas include line wrap and coloring theme: basically, anything in codemirror.css
    that uses a descandant selector where the CSS class name to the left of the space is something
    other than a vanilla .CodeMirror)
*/
.CodeMirror {
    .CodeMirror {
        background: transparent;
    }

    .CodeMirror .CodeMirror-gutters {
        background: transparent;
        border-right: none;
    }

    .CodeMirror .CodeMirror-activeline-background {
        background: transparent;
    }

    .CodeMirror .CodeMirror-activeline .CodeMirror-gutter-elt {
        background: transparent;
        color: #767676;
    }

    .CodeMirror-focused .CodeMirror-activeline-background {
        background: #2f2f2f;
    }

    .CodeMirror-focused .CodeMirror-activeline {
        .CodeMirror-gutter-elt {
            background: rgba(0, 0, 0, 0.2);
            color: #fff;
        }
    }
}
/* dropdown icon - normal */
.CodeMirror-foldgutter-open:after {
    color: #a7a7a7;
}
/* dropdown icon - when closed */
.CodeMirror-foldgutter-folded:after {
    color: #727272;
}
/* dropdown icon - hover */
.CodeMirror.over-gutter, .CodeMirror-activeline {
    .CodeMirror-foldgutter-open:after {
        color: #8e8e8e;
    }
}
/* three dotted line box */
.CodeMirror-foldmarker {
    border-color: #ffffff;
    color: #7a7a7a;
    background-color: #ffffff;
    box-shadow:  inset 0px 0px 1px 0px #7a7a7a;
}

/* Non-editor styling */

.image-view,
.not-editor {
    background-color: #ffffff;
}

.view-pane .image-view {
    color: @foreground;
}

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {
    /* Ensure visibility against gray inline editor background */
    background-color: #ffffff; !important
    color: #000000; !important;
}

/* Custom code colors or overrides should start after this line */

Nancy OShea
Community Expert
Community Expert
May 24, 2017

Are you working in a PHP document or an HTML document?

Have you tried testing it with an ordinary HTML file yet?

Nancy

Nancy O'Shea— Product User & Community Expert
Inspiring
May 24, 2017

Ben, I already did that

It does NOT work

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

    /* Ensure visibility against gray inline editor background */

    background-color: #ffffff;

    color: #000;

}

BenPleysier
Community Expert
Community Expert
May 24, 2017

Did you add the red bit.

background-color: #ffffff !important;
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Inspiring
May 24, 2017

I just did now you showed me and it still does not work.

I did reboot DW as well.

See image below

Inspiring
May 24, 2017

Jon, I do not understand. I do not want to change the "theme" and recode every css.

I just want to get rid of this one annoying Agent Orange feature.

I have spent almost 18 hours learning many of the new features (a complete waste of my time which has resulted in an angry client)

This is what I have done, I have tried both the white "theme" and the light gray theme and (Please read this) when I click the </td> tag or ANY OTHER tag, they ALL highlight with the same insipid orange color.

As per the attached image in my previous post.

I do not want to include any external CSS because google "Now" penalizes me for forcing them to do another "loop" to pick up the css before building the page.

I have gone through EVERY Hex code on the MAIN.LESS page and checked it against this color picker and anything orange, I have changed to white

Color Picker by WebpageFX

Yet the Orange BG problem persists.

Inspiring
May 24, 2017

BTW Ben, did you actually TRY and see if what you were sending me to actually specifically applied to the problem I and many others are having ?
Or was this just a post to get points?

Because NOTHING on that page or its linked pages seems to work  and I have also checked ALL of the CSS files in the adobe folder for this orange hex code.

Perhaps you should TRY and see if your suggestion works before you say something demeaning.

BenPleysier
Community Expert
Community Expert
May 24, 2017

At the risk of being called a moron, have a look at Learn how you can customize the colors of your code elements in Dreamweaver.

Lucky you have this on your side No such thing as a stupid question - Wikipedia

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Inspiring
May 24, 2017

Perhaps IF you had looked at the image I attached and then tried to find the solution you would have seen that THERE IS NONE.

I have already visited the page you suggested, I have already changed every #be7126 that I have found to #FFFFFF and NOTHING works.

Pointing someone to a page which does NOT answer their question reinforces my point.

BTW

Before you get on your mighty horse, perhaps you should look around the forums to see just how angry people are at the stupidity of this new release and instead of being condescending to the people who pay your bills, perhaps you should take on board what they are angry about (except that the puppets playing god on this and other forums delete or disapprove most of the comments because of how people express themselves towards idiots.

Remember that Yahoo and Alta Vista and friends were kings until google came up with a better product.

Jon Fritz
Community Expert
Community Expert
May 24, 2017

The solution is on this forum post: Solution: White on Mint Green Code Color.

Post #4 by OhAdobeYouSoCrazy has the correct CodeMirror selectors to allow you to keep your code coloring, and change the tag highlight color (though their response was to the far worse light green in the default light theme).

The method works in any theme, you do have to do a lot more legwork than should be necessary though.

Hopefully Adobe will bring back a useful interface for changing these things in the future.