Skip to content

bug: JS in HTML files are not highlighted #2548

@flacial

Description

@flacial

Description

When the user submits an HTML file that has a script tag with some JS code, the JS code syntax isn't highlighted as shown in the following image:

image

Solution

Set the syntax as JSX if it's an HTML file

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🦄 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions