zend studio 添加.tpl自定义文件类型

来源:互联网 发布:linux firewall cmd 编辑:程序博客网 时间:2024/05/16 06:01

我在学习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编辑器。



0 0