D
D
Denis2016-07-16 13:50:05
phpstorm
Denis, 2016-07-16 13:50:05

How to restore code highlighting in a specific file?

Greetings gentlemen! For the first time in a long time, I encountered the following problem in PhpStorm. In a nutshell, the steps were something like this:

  1. Created a file "myfile.php" but deleted it a bit later (without " Safe Delete ")
  2. After a while, a file with the same name was still needed. But after creation, the PHP code in it is not highlighted in the file list panel, its icon is like that of a text file.
  3. I tried to clear the cache (" Invalidate Code "), restore a previously deleted one, but did not achieve a positive result.

At the same time, PHP files with any other name are created kosher and highlighting works in them as it should.
I’m scratching my head and I can’t understand whether this is a PhpStorm bug, or whether I accidentally pressed some shortcut, as a result of which this problem appeared.
PhpStorm 2016.1 Build #PS-145.258

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question