========================内容类型设置==============================================================================
1.In Zend Studio go to Window | Preferences (on MacOS - Zend Studio for Eclipse | Preferences)
2.In the Preferences dialog open the hierarchy General | Content types
3.On the Content Types page select Text | PHP Content type
4.Click Add
=======================文件关联设置====================================================================
1.In the Preferences dialog open the hierarchy General | Editor | File Associations
2.On the File Associations page click the Add button next to the File types list
3.In the Add File Type dialog enter *.tpl and click OK
1.In Zend Studio go to Window | Preferences (on MacOS - Zend Studio for Eclipse | Preferences)
2.In the Preferences dialog open the hierarchy General | Content types
3.On the Content Types page select Text | PHP Content type
4.Click Add
5.In the Add Content Type Association dialog enter *.tpl and click OK
这里要在 PHP Content Type 中加
=======================文件关联设置====================================================================
1.In the Preferences dialog open the hierarchy General | Editor | File Associations
2.On the File Associations page click the Add button next to the File types list
3.In the Add File Type dialog enter *.tpl and click OK
4.To verify that the procedure was succesful, verify that the *.tpl files are associated with the usual set of PHP editors on the File Associationspage
按照步骤添加 重新打开 就能关联了