question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template literal syntax highlighting not working in ES6 files

See original GitHub issue

Hi! 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.

image

Code says the language mode is Babel JavaScript.

Any ideas what could be wrong?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelgmcdcommented, Oct 27, 2018

In order to support this setting, I need vscode to support adding and removing grammars at runtime: https://github.com/Microsoft/vscode/issues/61962

0reactions
michaelgmcdcommented, Jun 5, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found