Reputation: 8685
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.
Upvotes: 0
Views: 90
Reputation: 165501
Settings (Preferences on Mac) | Editor | File Types
TypeScript
filesUpvotes: 1