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.

Javascript and PHP in HTML lose syntax highlighting

See original GitHub issue
  • code-server version: From the docker one liner
  • OS Version: Docker file on windows 10

Description

When writeing js in .html files or html in .php files, the “foreign language” looses syntax highlighting. This doesn’t happen in the desktop version: (left coder, right normal vscode) Clipboard Image

Steps to Reproduce

  1. Create an html file
  2. Create a script tag
  3. Write javascript
  4. Have trouble writing javascript because there is no syntax highlighting or intellisense

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
niv-dcommented, Apr 22, 2019

@nol166 Winter is coming

0reactions
sr229commented, Sep 12, 2019

Fixed on latest tree by GH-857.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript and PHP in HTML lose syntax highlighting #562
Steps to Reproduce. Create an html file; Create a script tag; Write javascript; Have trouble writing javascript because there is no syntax ......
Read more >
eclipse 2020-06 syntax highlighting not working with inline ...
js files, but when I write any javascript inside a php or html file using script tags, the code is simply black text....
Read more >
Syntax highlighting of PHP inside JavaScript (and other ...
For example, we can use PHP syntax inside JavaScript and echo a specific variable to output. Our IDE will recognize both languages and...
Read more >
Syntax highlighting in files that contain HTML, Javascript and ...
If I switch the language to Javascript, the code in the script block looks right, but the HTML and PHP lose their syntax...
Read more >
Highlighting for javascript inside of html inside of php? : r/neovim
Hey all, for the most part syntax highlighting with treesitter works for me, and it works well separately for PHP and HTML, ...
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