Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CC 2017 - CodeMirror matching tags - how to keep font colors

New Here ,
Mar 02, 2017 Mar 02, 2017

Matching tags is a great feature but it bugs me that the whole matching tags change their font colours. I know how to define the colours of them in the main.less theme but I can't figure out how to change background only but keep the font colours. It would be useful to me as I use PHP scripts within the HTML tags and they all go black (or whatever colour I define in .CodeMirror-matchingtag class). If I remove the color: definition from there it turns white which is even worse.

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 02, 2017 Mar 02, 2017
Translate
Community Expert ,
Mar 02, 2017 Mar 02, 2017

Have a look at Learn how you can customize the colors of your code elements in Dreamweaver.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 02, 2017 Mar 02, 2017

I said I know how to customize the colours. I've read this article from start to the end many times. There no word in that manual how to keep the font colour and change only a background of matching tags.

This sets the font colour of selected matching tags to black:

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

    background-color: rgba(0,195,255,0.5);

    color: #000!important;

}

This sets the font colour to default white:

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

    background-color: rgba(0,195,255,0.5);

}

Question is: how to keep the font colours defined with .cm-*** classes within the selected matching tags?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2017 Mar 02, 2017

See if this helps:

Solution: White on Mint Green Code Color.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2017 Mar 02, 2017

Are you trying to get the text color to stay "themed" rather than go to black or white when you click on a tag, like it does when you drag to highlight the code?

In effect, trying to get this (when you click in the tag)...

clicked.jpg

...to look like this...

selected.jpg

If you ever find out how to do that, let me know, I've been digging through CodeMirror and Brackets posts all across the internet trying to find a way to do it. I've figured out a lot of interesting things, but this one is totally eluding me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 03, 2017 Mar 03, 2017

@

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2017 Mar 03, 2017

One of the other contributors figured out the right CodeMirror selectors to do this.

It does take a little effort to modify them to your theme if its different from the one he used, but it works. He posted it to this thread...

Solution: White on Mint Green Code Color.

This is what I have now, when I click a tag...

slicked-link.jpg

And here it is when the code is click/dragged to highlight...

highlighted.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2017 Mar 06, 2017
LATEST

The

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