GithubHelp home page GithubHelp logo

Comments (5)

vincaslt avatar vincaslt commented on May 27, 2024

Hi, thanks, would you be able to provide the full code example or the excerpt where this error occurs?

from vscode-highlight-matching-tag.

vincaslt avatar vincaslt commented on May 27, 2024

Right now it simply seems like your tag is invalid with a random quotation mark in the middle...

from vscode-highlight-matching-tag.

rutenio avatar rutenio commented on May 27, 2024

This is just an example, but it appears in several files that mix javascript, html and php code.

                            $.each(data, function(i, v) {
                                lista += '<tr><td class="text-center">' + v.idconfig +
                                    '</td><td>' + v.titulo + '</td><td class="text-center">' +
                                    '<input class="form-check-input" type="checkbox" disabled ' + (v.ativo == 1 ? 'checked' : '')  +
                                    '></td><td class="text-center">' +
                                    '<button class="btedit btn btn-link btn-sm" data-id="' + v.idconfig + '">' +
                                    '<i class="fas fa-edit"></i></button></td></tr>'
                            });
                            $('#tableconfigs tbody').html(lista);

from vscode-highlight-matching-tag.

vincaslt avatar vincaslt commented on May 27, 2024

I have improved the matching according to your example. However, I wouldn't bet on it working well all the time, because building DOM from strings like that is incredibly hard to parse correctly. It's almost an accident if it works, and I will not support it if it requires hacks. Having said that, you can try updating the extension now and check if it works better for you now.

from vscode-highlight-matching-tag.

rutenio avatar rutenio commented on May 27, 2024

Thank you Vincas. My intention was only that the extension would still work in the rest of the html, and now, besides working in HTML, it still works in the javascript string, incredible!

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.