您好,欢迎访问一九零五行业门户网

Eclipse 中 PHP Editor 联系关系 CakePHP *ctp 文件

eclipse 中 php editor 关联 cakephp *.ctp 文件
最近在玩cakephp,这个框架的view文件扩展名全是.ctp,这样编辑的时候没有php的高亮显示感觉很不爽,所以就试了试让他用eclipse自带的php editor:
1>在打开的ctp文件中点击右键,选择preferences
2>在弹出的窗口中点击editor
3>点击file associations,在弹出的窗口的file type列表框旁边点击add,添加*.ctp.然后保持选中*.ctp的状态不变,在下面的列表框附近点击add,为*.ctp添加associated editor,选中php editor
4>在2>中弹出的窗口中选择content types,展开text,找到php content type,然后添加*.ctp.
5>到此设置完成,你再打开ctp文件的时候高亮显示就是php的了。
其它类似信息

推荐信息