GithubHelp home page GithubHelp logo

Comments (5)

vincaslt avatar vincaslt commented on May 28, 2024

Yes it is, but you must write the rules in caps lock - "backgroundColor": "yellow", and reload/restart vscode after.

from vscode-highlight-matching-tag.

madebyaris avatar madebyaris commented on May 28, 2024

hi @vincaslt thank you for your awesome answer,
I already tested it and it worked.


I think I misunderstood it, so I want to make <tag> </tag> in yellow color, is it impossible ? or maybe you can suggest me with something closer like this 👍

from vscode-highlight-matching-tag.

vincaslt avatar vincaslt commented on May 28, 2024

See if maybe this will be what you want:

"highlight-matching-tag.leftStyle": false,
"highlight-matching-tag.rightStyle": false,
"highlight-matching-tag.style": {
    "backgroundColor": "yellow"
}

This should highlight the whole tags, but not the text/elements inside the tag, if that's what you want as well, I'm afraid you can't do that currently.

Also vscode adds it's own highlighting on top of the elements, and I'm yet to find how to disable it when using .style

from vscode-highlight-matching-tag.

madebyaris avatar madebyaris commented on May 28, 2024

awesome, that's what I looking for. thank you.

here's some example how to do that (incase someone didn't understand how to do it )
https://gist.github.com/madebyaris/ce062af77dc0669bcd45c3a30c76b635

from vscode-highlight-matching-tag.

LoDef avatar LoDef commented on May 28, 2024

Worth mentioning is that it works with RGBA values as well

"highlight-matching-tag.style": {
      "backgroundColor": "rgba(255,255,200,0.3)" 
}

from vscode-highlight-matching-tag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.