Code-server: Javascript and PHP in HTML lose syntax highlighting

Created on 22 Apr 2019  路  8Comments  路  Source: cdr/code-server

  • 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
bug

Most helpful comment

@nol166 Winter is coming

All 8 comments

@dmratcliffe Did you install any linter extensions?

@foresthoffman No, none related to html.

What theme are you using?

@nol166 Winter is coming

Colorizers for this are provided by Textmate, I guess the textmate is failing to work in this case.

Try doing a hard reload to see if it fixes it? @dmratcliffe

@sr229 the past couple of days I've been using coder ive slowly realized that sometimes it is showing the syntax for foreign languages and sometimes it isn't (it almost always isn't). It can be sorta annoying but lately I've just been quick switching the syntax of the whole file when I work on js vs php inside html

Can confirm this might be Textmate failing to recognize language statements.

Fixed on latest tree by GH-857.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RealSlimMahdi picture RealSlimMahdi  路  3Comments

Arsaev picture Arsaev  路  3Comments

oonqt picture oonqt  路  3Comments

pchecinski picture pchecinski  路  3Comments

pchecinski picture pchecinski  路  3Comments