In my PhpStorm, the file index.php
, doesn't look like a PHP script, but a plain text file. How can I fix it?
Asked
Active
Viewed 2,050 times
2

halfer
- 19,824
- 17
- 99
- 186

ZhouMengkang
- 193
- 8
3 Answers
2
- Settings | File Types | Text files
- Find and remove unwanted pattern there -- I expect this to be
index.php
or very similar
Similar SO questions:
1
Follow this steps:
Open PHPStorm settings by using Ctrl+Alt+S
- In search box type File types
- Select file types option from left side panel
- Find
PHP Files (PHP)
from Recognized file types - Check for
.php
extension in below area (Registered Patterns). If not found add PHP.
-
`*.php`exsit,my question is only the file of `index.php` look like plain text ,the other file of php script is ok. – ZhouMengkang Mar 28 '14 at 03:30
0
Right click on index.php and select "Mark as PHP".
(This option is there on PHPStorm 7.x, I'm not sure about 6.)

mike__t
- 979
- 5
- 6
-
only get the option `Mark as Plain Text` in other php script. but right click on index.php , can't get the option – ZhouMengkang Mar 28 '14 at 03:20
-
File marked as plain text this way will have slightly different file icon. – LazyOne Mar 28 '14 at 14:25