Template literal syntax highlighting not working in ES6 files
See original GitHub issueHi! I seem to have a problem with syntax highlighting in my ES6 files, not sure if I’m missing something or not. I would love for this to work since I moved from Atom to Code, and this worked great in Atom.
Code says the language mode is Babel JavaScript
.
Any ideas what could be wrong?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Incorrect diff in ES6 template literal syntax highlighting - GitLab
But I'm guessing it's having difficulty handling es6's template literal syntax. Either way, although the code works as expected and doesn't seem ...
Read more >es6-string-html - Visual Studio Marketplace
Syntax highlighting in es6 multiline strings. Installation. Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press enter.
Read more >Syntax Highlight JavaScript Template Strings - Joy of Code
Syntax highlight, and code completion inside JavaScript template strings. ... is using template literals because it makes working with the Document Object ...
Read more >Text highlighting for ES6 template literals (backticks) in IntelliJ ...
I think it is related to HTML in non-HTML files, probably it has nothing to do with quotes or backticks. I've been searching...
Read more >Template literal syntax highlighting not working in ES6 files
Hi! I seem to have a problem with syntax highlighting in my ES6 files, not sure if I'm missing something or not. I...
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 Free
Top 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
In order to support this setting, I need vscode to support adding and removing grammars at runtime: https://github.com/Microsoft/vscode/issues/61962
@esocode please look at https://github.com/michaelgmcd/vscode-language-babel/issues/34#issuecomment-416606321. Other highlighting plugins have explicit checks for “template” and highlight them as mustache. I would be interesting in adding custom highlighting like this in a comment but would need VSCode support