Intellij failed to detect file type -


i have intellij 13.1.3 ultimate , have been using php projects. files.php nicely hightlighted php.

this morning had create new file called "report.php". @ first create right click > new > file, gave me no hightlighting. deleted , tried again right click > new > php file same result. ever way create it, thinks file txt (it seems so) , there no code highlighting. it's pretty frustrating.

i have tested creation of new file different name "reports.php" time right click> new > php file, , came nicely highlighted. tried rename file "report.php" came no highlighting!!

it seems intellij stuck name report.php being type text.

i tried delete file, restart idea, recreate right way, no luck. tried power save mode on, , off. no luck. tried file > invalidate cache/restart, ... no luck.

i'm out of options here...

is there way force intellij interpret file? name "report" reserved word?!?!?

how can stupid...

edit: tried suggestion in : intellij: how force editor treat file javascript? php not in list of template data language

also in settings > file types, saw 2 php file entries. 1 no extention, , 1 configured. deleted bad 1 reappears after restart of idea!

please go settings | editor | file types , remove association of "report.php" text file type. (the erroneous association created because of bug in intellij idea, unfortunately don't have specific steps reproduce it.)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -