Skip to main content
marcinzemczak
Participant
March 2, 2017
Answered

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

  • March 2, 2017
  • 7 replies
  • 1001 views

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.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Nancy OShea

    See if this helps:

    Solution: White on Mint Green Code Color.

    Nancy

    7 replies

    BenPleysier
    Community Expert
    Community Expert
    March 2, 2017
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    marcinzemczak
    Participant
    March 2, 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?

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    March 2, 2017
    Nancy O'Shea— Product User & Community Expert