Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > get DWMX to recognize non standard extensions

get DWMX to recognize non standard extensions
Thread Tools
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 18, 2003, 12:16 AM
 
Ok here is one for you all:

How can i get DWMX to open a file with a non-standard extension and properly apply syntax coloring?

I name all my "template" files *.tpl for simplicity - its easy to tell different types of files this way. Most of my .tpl files are either strictly HTML or HTML mixed with a bit of PHP here and there... When I try to open them with DWMX, it just sees them as a text file and does not color the code or let me use the preivew view. I suppose I could name them all *.tpl.php but would rather stick with *.tpl

Any ideas?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 18, 2003, 03:56 AM
 
i think you need to edit Dreamweaver MX/Configuration/DocumentTypes/MMDocumentTypes.xml

check the Help file: Contents > Overview > Extending Dreamweaver > Extensible document types in Dreamweaver
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 18, 2003, 10:43 AM
 
thanks for the tip.. worked like a charm

PS. also had to goto dreamweaver -> preferences -> files types/editors and setup a new filetype for .tpl with dreamweaver as the editor in order for dreamweaver to auto open .tpl files from inside itself using the site browser.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:25 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2