To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
Old 02-03-2003, 07:26 PM   #1
Gary King
Web Developer & Designer
 
Join Date: Feb 2003
Posts: 307
Question How to add a new file type?

How can I add a new file type to Dreamweaver MX?

For example, if I want to add a file type with the extension *.test to Dreamweaver MX, and also I want Dreamweaver to color code the file, then how would I go about doing that?

Thanks in advance!
__________________
Gary King
Gary King is offline   Reply With Quote
Old 02-14-2003, 01:07 AM   #2
Eccen
Junior Member
 
Join Date: Feb 2003
Posts: 1
First go to Macromedia Dreamweaver Folder...

Then... 'Configuration' > 'DocumentTypes'

Usually as follow: C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes

There should be a file named 'MMDocumentTypes.xml'

Open the xml file and modify it, and... enjoy DW
Eccen is offline   Reply With Quote
Old 02-14-2003, 05:55 PM   #3
Gary King
Web Developer & Designer
 
Join Date: Feb 2003
Posts: 307
Thanks very much for the reply!

But, could you (or someone) please explain how I can add a new file type there? And how to have the code in the file type files to be colour-coded, like when modifying a .php or .html file?

Thanks!
__________________
Gary King
Gary King is offline   Reply With Quote
Old 03-05-2003, 11:21 AM   #4
CJ@G3
Junior Member
 
Join Date: Mar 2003
Location: Hertfordshire, UK
Posts: 11
look in the DW preferences. there is a section on file types; rather than editing the configuration file manually. all adding a file type will do, is specify to your system that dreamweaver is to open that type of file. the file will most likely be treated as 'code', and code language will be detected by DW automatically and coloured similarly.

Hope this explains


CJ
CJ@G3 is offline   Reply With Quote
Old 03-05-2003, 11:26 AM   #5
Gary King
Web Developer & Designer
 
Join Date: Feb 2003
Posts: 307
Nevermind, I have already found the solution to my question at Dreamweaver's website.
__________________
Gary King
Gary King is offline   Reply With Quote
Old 03-08-2003, 04:41 PM   #6
er0k
Junior Member
 
Join Date: Mar 2003
Location: Kingfisher, Oklahoma, US
Posts: 11
god... you mean to tell me people actually use dreamweaver still? what happened to pure code..
__________________
w00t!

er0k is offline   Reply With Quote
Old 03-08-2003, 09:14 PM   #7
Gary King
Web Developer & Designer
 
Join Date: Feb 2003
Posts: 307
Who said I always used Dreamweaver?
__________________
Gary King
Gary King is offline   Reply With Quote
Old 03-26-2003, 12:54 PM   #8
PabloAgogo
Junior Member
 
Join Date: Mar 2003
Posts: 3
Quote:
Originally posted by Blak n Wite
Nevermind, I have already found the solution to my question at Dreamweaver's website.
Seeing that the kind folk on this forum took time out to help you with your question, wouldn't it be nice to share the solution with the rest of us?
PabloAgogo is offline   Reply With Quote
Old 03-26-2003, 06:11 PM   #9
Gary King
Web Developer & Designer
 
Join Date: Feb 2003
Posts: 307
Quote:
Originally posted by PabloAgogo
Seeing that the kind folk on this forum took time out to help you with your question, wouldn't it be nice to share the solution with the rest of us?
I used Eccen's solution.
__________________
Gary King
Gary King is offline   Reply With Quote
Old 06-06-2006, 03:21 PM   #10
digitizelife
Junior Member
 
Join Date: Jun 2006
Posts: 1
I Googled this question and found this post. I was able to get the code highlighting for PHP and HTML and other code as well. I resolved it by doing a few things;

1. Open the XML document named "MMDocumentTypes.xml" located in "C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes"

2. Find the following code;

Code:
	<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3" macfileextension="php,php3" file="Default.php">
		<TITLE>
			<MMString:loadString id="mmdocumenttypes_14" />
		</TITLE>
		<description>
			<MMString:loadString id="mmdocumenttypes_15" />
		</description>
	</documenttype>
3. Copy the above code and copy [Ctrl + C]

4. Go o the end of the document [Ctrl + End] and Paste [Ctrl + V]

5. Change the following code;

Code:
winfileextension="php,php3" macfileextension="php,php3"
to

Code:
winfileextension="tpl" macfileextension="tpl"
6. Change the following code;

Code:
<MMString:loadString id="mmdocumenttypes_14" />

and

<MMString:loadString id="mmdocumenttypes_15" />
to

Code:
<MMString:loadString id="mmdocumenttypes_64" />

and

<MMString:loadString id="mmdocumenttypes_65" />
Note: The above two numbers (64 & 65) should be the next two largest numbers in the XML document.

7. Save and close the file.

8. Go to "Edit / Preferences" in Dreamweaver, click "File Types/Editors" and add the extension .tpl to the Extensions list and add Dreamweaver as the Editor
digitizelife is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:27 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.