Search code examples
htmlcssphpstorm

PhpStorm - <link rel="stylesheet" href=""> - Unexpected token?


I have the strangest error with PhpStorm 2017.

I'm working on a simple .html file, and when I add some stylesheet links to the <head>, PhpStorm says: Unexpected token ("/").

For example there's no such problem with <script src="/asd/asd/">

Any help is appreciated.

Screenshot: enter image description here


Solution

  • As per your screenshot -- please delete 2 entries that have IDE in the last column.

    • One of them (top one) creates this issue.
    • Second one -- pretty useless (it works like that already). At very least disable this one (if you think it's useful elsewhere or have created it for some other reasons)

    enter image description here