Forums
This topic is locked
Registering New File Extensions
14 Apr 2007 11:15:10 Lee M posted:
Hi...I want to register a new file type/extension in Dreamweaver 8 .... I have a file 'filename.spt' that is part of a CMS and I need Dreamweaver to treat it exactly the same as an ASP file - Is this possible??
Thanks
Lee
Replies
Replied 15 Apr 2007 02:31:53
15 Apr 2007 02:31:53 Kenneth Halley replied:
Do you mean you want to be able to edit these files in code editing manner as you would with a php or ASP file- I am a php writier myself not ASP? And you want to be able to open this i n DW without it flinging up an error message saying not a valid editor?
If this is the issue- simply go to Edit | preferences and then File Types ?editors and add the extension- spt in your case to the line that says "open in code view" I always need to add extras in here- .log .htaccess etc etc.
If this isn't what you mean it could be that you want the file type to appear in the New file dialogue? If I recall you can do this by going to your Configuration directory: for me its C:\Program Files\Macromedia\Dreamweaver 8\Configuration in here there is a file called Extensions.txt. You can edit this file but I have a feeling you need to add it somewhere else too to work- I did this once it will come back to me! Think its the next dir down there are some xml files, however don't take my word for it without backing up the original files first in case it all goes horribly Pete Tong.
-----------------------------------
www.halleynet.co.uk
If this is the issue- simply go to Edit | preferences and then File Types ?editors and add the extension- spt in your case to the line that says "open in code view" I always need to add extras in here- .log .htaccess etc etc.
If this isn't what you mean it could be that you want the file type to appear in the New file dialogue? If I recall you can do this by going to your Configuration directory: for me its C:\Program Files\Macromedia\Dreamweaver 8\Configuration in here there is a file called Extensions.txt. You can edit this file but I have a feeling you need to add it somewhere else too to work- I did this once it will come back to me! Think its the next dir down there are some xml files, however don't take my word for it without backing up the original files first in case it all goes horribly Pete Tong.
-----------------------------------
www.halleynet.co.uk
Replied 15 Apr 2007 10:00:46
15 Apr 2007 10:00:46 Lee M replied:
