Script tag in HTML files breaks highlighting subsequent HTML tags
See original GitHub issueWhen I have a script tag, it breaks all subsequent closes tags (i.e., the closing </script>
, </body>
, and </html>
in this screenshot):
I noticed that if I have a bad type
attribute, then highlighting the closing tags is correct, although the JS highlighting in the script
tag is disabled:
I think this is related to this repo, since when I disable this theme, highlighting appears correct.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Javascript syntax highlighting it not working
I have an .html file which is part of a large project, and in the middle of the file, syntax highlighting just flat...
Read more >Syntax Highlighting for HTML inside x-template script tags ...
For context, I'm using scripts of type x-template to create Vue. js components inside a file saved with a . html extension.
Read more >Presenting Code
Presenting Code. reveal.js includes a powerful set of features aimed at presenting syntax highlighted code — powered by highlight.js.
Read more >Tags used in HTML
This is a list of tags used in the HTML language. Each tag starts with a tag opener (a less than sign) and...
Read more >JavaScript: Search Keyword Highlighting
As the script encounters and highlights different keywords the colour used for each is remembered so that the same keyword can be highlighted...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah ha! Good suggestion.
Looks like this extension Sublime Babel is causing compatibility issues. When I disable that extension, everything highlights as you’d expect.
Thanks again for the troubleshooting tip.
Babel JavaScript is causing this issues too.