Highlighted

HOW TO REMOVE ORANGE CODE HIGHLIGHTING

Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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

adobe.png

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

TOPICS
Create menus in Dreamweaver, Create Slideshows in Dreamweaver, Dreamweaver CC 2014, Dreamweaver FTP, Dreamweaver | Mac OS issues, Learn Dreamweaver

Views

16.7K

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

HOW TO REMOVE ORANGE CODE HIGHLIGHTING

Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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

adobe.png

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

TOPICS
Create menus in Dreamweaver, Create Slideshows in Dreamweaver, Dreamweaver CC 2014, Dreamweaver FTP, Dreamweaver | Mac OS issues, Learn Dreamweaver

Views

16.7K

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
May 24, 2017 5
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

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


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...
May 24, 2017 1
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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.

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...
May 24, 2017 3
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

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.

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...
May 24, 2017 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

Jon, NOT the solution, I have already changed ALL of the BG colors in the .LESS file to FFF

Pls see the image attached

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

    /* Ensure visibility against gray inline editor background */

    background-color: #ffffff;

    color: #000;

}

adobe.png

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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

I don't know what to tell you aside from you've likely goofed up somewhere.

I've used the exact solution, it does work.

Here is a screen capture of a highlighted tag in my modified Dark theme (when clicked inside the tag)...

tag-highlight.jpg

...and here's the same code, click-drag selected...

selected.jpg

The original dark theme gives an orange highlight color with white text.

I've used nothing but that post as a guide to make the change.

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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

Before

After

Look for .CodeMirror-matchingtag and change the background colour

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

    /* Ensure visibility against gray inline editor background */

    background-color: white !important;

    color: #fff!important;

}

Perhaps we should both get off our horses.


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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

Oh! And for the link that I showed you! Here is what it says (near the top)


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...
May 24, 2017 1
Adobe Community Professional ,
May 25, 2017

Copy link to clipboard

Copied

I just received this message:

STOP-SPAMMING-ME marked their reply on HOW TO REMOVE ORANGE CODE HIGHLIGHTING as helpful.

Great to see that you are happy.

Getting back to what you wrote originally

STOP-SPAMMING-ME  wrote

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.

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.

  • I did not point you to a page that did not answer your question. If you had studied the carefully prepared Adobe document, you would have found the answer that you were looking for.
  • Nobody in this forum pays my bills. I do not work for Adobe and my contributions to this forum are free of charge. However, they are often the target of abuse. My reward? Reward points that I cannot even cash in for a trip to to the local pub.
  • Have fun with the points that you have rewarded to yourself.

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...
May 25, 2017 0
Explorer ,
Nov 08, 2017

Copy link to clipboard

Copied

That is a little sad. Most people who come to here are doing so under the impression that they pay for support from Adobe, but from what you're saying, it appears that our money is being spent in the pub instead, and our 'paid' support is being supplied by an unpaid volunteer instead. I thank you for putting the effort in to help fellow devs, but I am extremely concerned about the policy of Adobe's that has seemingly shifted their contractual responsibility onto a member of the public! This is a growing trend - which seems to offer no benefits to the actual people paying the bills, but plenty for the company whose legal responsibility it actually is to provide said support.

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...
Nov 08, 2017 2
Explorer ,
May 13, 2018

Copy link to clipboard

Copied

Having just read through these comments again. I noticed the discrepancy regards the following part of the comment you made to the OP:

<quote>

  • I did not point you to a page that did not answer your question. If you had studied the carefully prepared Adobe document, you would have found the answer that you were looking for.

</quote>

FYI It was clearly stated that what was wanted was the ability to REMOVE the functionality, not change it to another colour, as per the instructions found at the linked pages you provided instructions toward. So stating that your links didn't provide the answer to the question was an entirely accurate observation by the OP. To summarise - for clarity - you (and others) provided solutions to alter the colours used in the functionality, whereas the OP specifically asked for a means to remove the functionality.

I'm a bit late to the party on this, but for anybody else who reads this thread later, it may help people who are searching for a specific solution to get the one they actual want i.e. removal OR colour change (of which either solution may be of use to different people dependent on what they actually want to do), both of which are supplied within this thread.

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...
May 13, 2018 1
Adobe Community Professional ,
May 13, 2018

Copy link to clipboard

Copied

To remove the functionality, would transparent have worked?


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...
May 13, 2018 2
Explorer ,
May 14, 2018

Copy link to clipboard

Copied

Good point, and I personally am sure it would have worked regards supplying the outcome that the user seemed to be aiming for, but it still wasn't what the OP actually asked for...and like me, it seems as if they are quite literal. I was merely trying to point out where the communication breakdown had occurred, as I can understand it from both sides.

However, I have to say, I'm glad I raised the point, because with your reply you have added to the information pile in this thread surrounding the issue, therefore giving a clear indication of another method of adapting the code panel to match what users actually want for their working environment.

So, we now have:

1/ Remove the functionality entirely

2/ Change the colour of the matching tags block to a more suitable colour

3/ Make the matching tags block 'colour' transparent so that it cannot be seen

My own current personal preference is the first one - as there are still bugs in the code matching functionality and cloned themes, but it's good to have other options. Thank you.

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...
May 14, 2018 1
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

Ben, ty for ur help.

[Moderator removed duplicated posts.]

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...
May 24, 2017 0
New Here ,
Sep 24, 2019

Copy link to clipboard

Copied

Thank you, I found it quite helpful and I was able to change the background color of the tags in my code. What I missed at first was 1) to then go back in and choose my custom profile and APPLY it, then 2) reopen Dreamweaver.

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...
Sep 24, 2019 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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.

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...
May 24, 2017 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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.

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...
May 24, 2017 2
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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;

}

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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

Did you add the red bit.

background-color: #ffffff !important;

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...
May 24, 2017 1
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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

I did reboot DW as well.

See image below

25-05-2017 3-43-03 AM.jpg

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...
May 24, 2017 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

Sorry, I added the !important; to both color codes, I have also tried short and long hex FFFFFF > FFF and nothing works

I have also rebooted DW several times

I am going to reboot my PC, not that this should have anything to do with anything

NEW IMAGE

25-05-2017 3-47-06 AM.jpg

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...
May 24, 2017 0
LEGEND ,
May 24, 2017

Copy link to clipboard

Copied

Remove the ; after #ffffff (that might help)

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...
May 24, 2017 2
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

At this point, it might not be a bad idea to post your entire .less file to the forum.

The contributors here aren't suffering from the same level of frustration you're going through right now and may be able to spot any other code errors, like the pair Os alludes to, that could be keeping your code from functioning the way it should.

An extra set of eyes might do the trick.

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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

One last thought, and I know this is a very "is it plugged in" style question...

Since you can't edit the Light theme directly in DW, the program forces you to create a duplicate with a different name, has that duplicate file been set as the code theme in your preferences?

Changing the line you show in your screen shot is what fixes the problem you're having. (The original color being #BE7126).

Once changed and saved, the modification appears instantly, as long as you've set the new edited theme in your Preferences.

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...
May 24, 2017 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

still does not help, but good point, ty

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...
May 24, 2017 0
Explorer ,
May 24, 2017

Copy link to clipboard

Copied

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 */

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...
May 24, 2017 0
Adobe Community Professional ,
May 24, 2017

Copy link to clipboard

Copied

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, 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...
May 24, 2017 0