使用Dreamweaver打开自定义的后缀[转载]

 


 
原文地址 http://www.rollenc.com/id/77  

在使用一些PHP模板,框架时,经常遇到一些自定义的后缀,如smarty的tpl, Prado的Page,这些在Dreamweaver中都不能支持打开。
下面的方法是如何定制:
以. ctp为例:

1。打开  Extensions.txt,位置在 C:/Documents and Settings/ Administrator/Application Data/Macromedia/Dreamweaver 8/Configuration(WINXP下)

2.把后缀. ctp加到 ALL DOCUMNET行。

3.把. ctp加到 PHP行. 使用PHP模式打开.ctp后缀类型文件.

4.保存文件。

5.打开 MMDocumentTypes.xml
你安装Dreamweaver的目录/Configuration/DocumentTypes/ MMDocumentTypes.xml .

6.在
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,page" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,page" file="Default.html" writebyteordermark="false">添加的话,就会用HTML模式打开。
 
<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" 
winfileextension="php,php3,php4,php5 ,ctp" macfileextension="php,php3,php4,php5 ,ctp
file="Default.php" writebyteordermark="false">
添加到折行就会用PHP模式打开。
7.保存文件  OK!重新启动DW吧

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值