zend studio 添加.tpl自定義文件類型

我在學習smarty模板技術的時候,自己練習編寫模板類,因爲用了自定義的.tpl作爲模板文件後綴名,實際上是帶自定義模板變量的html文件,zned studio10.6卻不支持創建自定義後綴名的文件,因此要將.tpl文件類型添加到zend中,分兩步進行

1.添加文件類型

Window > Preferences > General > Content Types > Text >PHP Content Type

下方File associations: > 右側Add

彈出框中輸入文件類型.tpl > OK





2.添加文件類型關聯編輯器

 General > Editors > File Associations 

右側上方 Add,添加.tpl類型。此時文件已自動關聯PHP編輯器。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章