Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS highlight syntax problem in tag <script>.... #110

Open
Recly opened this issue Aug 31, 2020 · 1 comment
Open

JS highlight syntax problem in tag <script>.... #110

Recly opened this issue Aug 31, 2020 · 1 comment

Comments

@Recly
Copy link

Recly commented Aug 31, 2020

Hello! Faced such a problem, with your plugin for Vue.js, JavaScript syntax is incorrectly highlighted in the <script> tag. If I change the language to HTML, then everything is highlighted fine. How can this problem be solved?

tagVue
htmlVue

@confused-Techie
Copy link
Collaborator

I know this is an older issue, but here's essentially what happens.

This package language-vue does very little to actually highlight any JavaScript. Essentially, this package recognizes that you've added JavaScript and instead says, Atom/Pulsar find the package that can highlight source.js and use that here. Then whatever package is selected it used.

So it seems whatever package is being selected is not the one you prefer and is providing a different code highlighting than you prefer. What's strange is I'd assume that language-html which is bundled into Atom/Pulsar would be doing the same exact thing, so I'm not sure why they have the different behavior. What I'd recommend is you take a look through your community package's to determine if there's additional packages that provide syntax highlighting for JavaScript and disable them one by one, until you see this issue is resolved. Once you do, then you'll be able to determine which package is providing the unwanted highlighting behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants