GithubHelp home page GithubHelp logo

Comments (4)

KamasamaK avatar KamasamaK commented on May 28, 2024

There are no settings for including or excluding particular languages or file extensions. It just tries to work for every file.

from vscode-highlight-matching-tag.

crispincornett avatar crispincornett commented on May 28, 2024

I guess it does look like its trying to work.

Here's how it looks on a html snippet with the syntax set to "HTML":

vscode_html

And then here's how it behaves with the same html snippet, but with the syntax set to "html.erb" :

vscode_erb

As you can see it highlights all same tags (in this instance all div), not just the matching ones.

from vscode-highlight-matching-tag.

vincaslt avatar vincaslt commented on May 28, 2024

The extension works for every syntax, even plain text. In this case it is working fine, but either the default vscode selection highlight is interfering and masking the highlight, or some other extension is. Unfortunately, I was not yet able to disable interfering decorations from other extensions, and in fact I'm starting to thing that's not even supposed to be allowed anyway.

You could try to set:
"editor.occurrencesHighlight": false
and see if it's satisfactory for you (you could find how to target specific extensions, say .erb with this setting). The downside is that you won't get this occurencesHighlighting in other code too.

You could also try to use some custom styling, instead of underline, for example background highlighting (see here).

Since there is no immediate issue with the extension and the quirk you're seeing is caused by some external extension or vscode itself, I will close the issue if there are no further comments.

from vscode-highlight-matching-tag.

crispincornett avatar crispincornett commented on May 28, 2024

Yeah, that makes sense. Seems like it is an API maybe VSCode is missing?

I took your advice and customized the styles and then disabled the "editor.occurrencesHighlight" for html.erb.

"[html.erb]": { "editor.occurrencesHighlight": false }

That seems to work just fine as far as I can tell.

Thanks for the help!

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.