HTML syntax highlighting, colors and Emet is not working in 2019.3

I have some issues with HTML files in Phpstorm.

The syntax highlighting, the colors and emmet is not working anymore in newly created and allready existing files.
In settings everything is showing how I want it, but not in the editor.

0
2 comments

Hi there,

Does it happen with just 1 file (specific name) or ANY file anywhere in the project (regardless of the project)?

Accordingly to your first screenshot that file is clearly treated as Plain Text and not HTML. The limited syntax highlighting that you see right now is then provided by another plugin (TextMate bundles) which works only for files that have no  associations with specific file types.

First of all, please go to "Settings/Preferences | Editor | File Types", locate Text file type entry in the top and see what patterns are registered in the bottom list. If you have something like "index" or "index.html" there then please remove it.

If it's not there, then it has to be something else. Quite likely this one: locate HTML file type and ensure that "*.html" pattern is present there.

2

Indeed, strange I came from New -> HTML -> HTML5 file ...

After setting the correct file type, everything works again. Even an new file...

Fixed, thx guys

0

Please sign in to leave a comment.