Javascript and PHP in HTML lose syntax highlighting
See original GitHub issuecode-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)
Steps to Reproduce
- Create an html file
- Create a script tag
- Write javascript
- Have trouble writing javascript because there is no syntax highlighting or intellisense
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top 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 >
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
@nol166 Winter is coming
Fixed on latest tree by GH-857.