user776686
user776686

Reputation: 8685

Valid HTML code not interpreted as HTML in PhpStorm 9

In PhpStorm 9.0 I created a file "index.html", pasted a valid code into it and saw it interpreted with plenty of errors. Then I created another one, named "abc.html" - pasted same code and saw it interpreted as HTML. Then I deleted the former "index.html" and renamed "abc.html" to "index.html" - again, it got interpreted not as html - can't really see as what.

Can anyone please tell me what's giving? Where in the Settings could I verify or force the right interpreter in?


When I start typin in the offending file, the autocomplete menu mentions lib.d.ts, so I think PhpStorm is interpreting the file as TypeScript.

enter image description here

Upvotes: 0

Views: 90

Answers (1)

LazyOne
LazyOne

Reputation: 165501

  1. Settings (Preferences on Mac) | Editor | File Types
  2. Locate entry for TypeScript files
  3. Delete offending pattern there -- most likely will be "index.html" or very similar.

Upvotes: 1

Related Questions