使用Dreamweaver编辑Smarty tpl模板文件

来源:互联网 发布:北邮iptv网络电视 编辑:程序博客网 时间:2024/05/16 18:02

 

Dreamweaverで、Smartyのテンプレートファイルを編集する方法
http://www.ironhearts.com/diary/archives/phpsqlwebaei/

 

需要编辑一下两个文件

・Extensions.txt
・MMDocumentTypes.xml

Extensions.txt所在、

Windows 2000 と Windows XP:
C:/Documents and Settings/username/Application Data/Macromedia/Dreamweaver MX/Configuration
OS X:
Hard disk: Users: username: Library: Application Support: Macromedia: Dreamweaver MX: Configuration
OS 9:和Dreamweaver相同级别Configuration文件夹里

 

先关闭Dreamweaver。
以OS9为例

1)打开Configuration下的Extensions.txt。(最好先备份)
2)在文件的头两行你追加 tpl

HTM,HTML,SHTM,SHTML,HTA,HTC,STM,SSI,JS,AS,ASC,ASR,
XML,XSL,XSD,DTD,XSLT,LBI,DWT,ASP,ASPX,ASCX,ASMX,CONFIG,CS,CSS,
CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,LASSO,JSP,JSF,VB,VBS,VTM,VTML,
INC,JAVA,EDML,WML,TPL
HTM,HTML,HTA,HTC,TPL

 

3)打开Configuration/DocumentTypes下的"MMDocumentTypes.xml ,追加tpl

<documenttypes xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml,tpl"
macfileextension="html,htm,shtml,shtm,lasso,xhtml,tpl" file="Default.html" writebyteordermark="false">


ok 可以了试一试吧