Windows2003下用Dreamweaver打开CodeSmith文件设置办法

时间:2014-06-22 17:09:54   收藏:0   阅读:374

电脑环境:Windows2003(32位)+Dreamweaver 8英文版本(安装路径C:\Program Files\Macromedia\Dreamweaver 8)

bubuko.com,布布扣

问题描述:Dreamweaver中默认打开文档时不支持打开CodeSmith模板文件对应的.cst后缀名文件,截图如下:

bubuko.com,布布扣
解决步骤:

一、用记事本打开文件1:C:\Program Files\Macromedia\Dreamweaver8\Configuration\Extensions.txt,修改内容如下:
HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,CST,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4

,PHP5,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML:AllDocuments
HTM,HTML,HTA,HTC,XHTML:HTML Documents
SHTM,SHTML,STM,SSI,INC:Server-Side Includes
JS:JavaScript Documents
XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
LBI:Library Files
DWT:Template Files
CSS:Style Sheets
ASP,ASA,CST:Active Server Pages
ASPX,ASCX,ASMX,CS,VB,CONFIG:Active Server Plus Pages
CFM,CFML,CFC:ColdFusion Templates
AS:ActionScript Files
ASC:ActionScript Communication Files
ASR:ActionScript Remote Files
TXT:Text Files
PHP,PHP3,PHP4,PHP5,TPL:PHP Files
LASSO:Lasso Files
JSP,JST:Java Server Pages
JSF:Fireworks Script
TLD:Tag Library Descriptor Files
JAVA:Java Files
WML:WML Files
EDML:EDML Files
VBS:VBScript Files
VTM,VTML:VTML Files

1、在第一行的ASP,字符串后面添加CST,
2
、找到行ASP,ASA:ActiveServer Pages修改为ASP,ASA,CST:ActiveServer Pages

二、用记事本打开文件2:C:\Program Files\Macromedia\Dreamweaver8\Configuration\DocumentTypes\MMDocumentTypes.xml

找到行

 <documenttypeid="ASP-VB" servermodel="ASP VBScript"internaltype="Dynamic" winfileextension="asp"macfileextension="asp" file="Default_vb.asp"

writebyteordermark="false">

修改为

 <documenttypeid="ASP-VB" servermodel="ASP VBScript"internaltype="Dynamic" winfileextension="asp,cst"macfileextension="asp,cst" file="Default_vb.asp"

writebyteordermark="false">


三、用记事本打开文件3:C:\Documentsand Settings\Administrator\Application Data\Macromedia\Dreamweaver 8\Configuration\Extensions.txt
1
、在第一行的ASP,字符串后面添加CST,
2
、找到行ASP,ASA:ActiveServer Pages修改为ASP,ASA,CST:ActiveServer Pages

 

设置上述三步后,就能用Dreamweaver来查找和替换cst文件中的多行代码了。

 

Windows2003下用Dreamweaver打开CodeSmith文件设置办法,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!