Making Eclipse view different file extensions as PHP

此生再无相见时 提交于 2019-11-30 16:54:39
cowgod

Head to Window -> Preferences. Drill down to General -> Editors -> File Associations. From here you can add your extensions (e.g., *.module) and associate them with your preferred PHP editor.

Then restart Eclipse for the change to take effect.

FYI.

window > preference > general > content types.
Expand '▷Text' and you will find 'PHP Content Type'. Select that.
Then click 'Add' and insert your own extension.

Something extra to be aware of.

I had the same problem, even after installing PDT. Turns out that there was an entry in General=>Content Types=>Text for *.php. Note that this not under General=>Content Types=>Text=>PHP Content Type, which is placed there by PDT. Removing the one under Text fixed the problem for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!