Comments (4)
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.
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":
And then here's how it behaves with the same html snippet, but with the syntax set to "html.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.
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.
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)
- How to Change Underline Width or Set Border Only For Bottom HOT 3
- Expected comma error! HOT 4
- VSCode latency
- Does not work with unicode
- Selected text not highlighting HOT 2
- Feature Request: Support if-directives from AsciiDoc HOT 1
- HTML Tag highlight issue if comments are present.
- "highlight-matching-tag.showPath": true is not working. HOT 1
- Don't show if on same line number HOT 1
- Hangs vscode for minutes on large codgen'd *.ts file HOT 2
- cant see the yellow line left HOT 3
- [Request] add a command: Select tag HOT 1
- Editor to become unresponsive when both Highlight Matching Tag and Overtype extensions are enabled HOT 2
- TSX support
- dont work vscode
- can't work on .tsx HOT 1
- In the mode where sticky scroll is enabled, the function does not take effect
- not working HOT 1
- Bug with PHP and PHP in HTML HOT 3
- Whitelist/blacklist options for better performance with multicursors in large files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-highlight-matching-tag.