Thursday, February 09, 2012    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Dec 2003 >>
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories
 • Acrobat (5) [RSS]
 • Adobe (110) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (34) [RSS]
 • AdobeMAX11 (27) [RSS]
 • AIR (297) [RSS]
 • Appearances (217) [RSS]
 • Books (86) [RSS]
 • CFEclipse (15) [RSS]
 • Cloud (1) [RSS]
 • ColdFusion (1477) [RSS]
 • ColdFusion Builder (22) [RSS]
 • Data Services (42) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (356) [RSS]
 • Flex (562) [RSS]
 • Home Automation (5) [RSS]
 • HTML5 (23) [RSS]
 • JavaScript (2) [RSS]
 • Jobs (130) [RSS]
 • jQuery (14) [RSS]
 • JRun (14) [RSS]
 • Labs (62) [RSS]
 • LiveCycle (37) [RSS]
 • MAX (284) [RSS]
 • Mobile (239) [RSS]
 • Regular Expressions (19) [RSS]
 • RIA (21) [RSS]
 • SQL (45) [RSS]
 • Stuff (554) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (167) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : December 19, 2003 / Main
December 19, 2003

Adding File Extensions to Dreamweaver

Dreamweaver features color coding and language awareness for lots of languages, all built in. Files are associated with a language by file extension, but what if you wanted to add an extension? I recently needed to edit an XML file as an XML file, but it did not have an XML extension, and so Dreamweaver treated it as text only (and would not even open it when clicking on in the Files panel). Some users save ColdFusion files with extensions other than CFM or CFML, and Dreamweaver won't recognize those by default. It took some digging around (and e-mailing the Dreamweaver team) to find out how to add my file extension, and now that I have it working I thought I should share the info in case others want to do the same. So:

1) The list of files that Dreamweaver edits are stored in Configuration\extensions.txt (under the Dreamweaver root). This is a plain text file, and you need to add the extension to two places, the "All Documents" line, and the specific file type line ("XML Files" for my file). Doing this allows you to click on a file in the Files panel so as to edit it.

2) You may have a second copy of this file in the user configuration directory (for example, mine is in C:\Documents and Settings\ben\Application Data\Macromedia\Dreamweaver MX 2004\Configuration), and you'll need to make the same changes to that file.

3) Next, edit file \Configuration\DocumentTypes\MMdocumenttypes.xml (this is the file that associates color coding with file extensions), locate the document type ("XML" in my case), and add the extension to the extension list.

4) And then restart Dreamweaver.

That should do it!

Comments
Good tip - I nearly always make a pass over these files after a new install to add a few extensions I commonly use!

Note when editing MMDocumentTypes.xml - the first extension in the list seems to be the default DW uses when saving a new file of a particular type (so if you add a weird extension, you might want to add it at the end of the list). Also note that file has separate extension lists for Windows and Mac.
# Posted By seancorfield | 12/19/03 11:11 AM
Randy Edmunds on the DW team just pointed me to this tech note which provides more details on this: http://www.macromedia.com/support/dreamweaver/ts/d.... Thanks.
# Posted By Ben Forta | 12/19/03 12:02 PM
Randy was faster than me :-)

There is another handy technote that may clarify the way DW's configuration files work on a multiuser OS. All in all, you shouldn't touch the main Configuration folder and customize only the one for the relevant user:

http://www.macromedia.com/support/dreamweaver/ts/d...
# Posted By Massimo Foti | 12/19/03 2:12 PM
The real question is why they made this feature so complicated when it was simple in Studio.
# Posted By Me | 12/21/03 10:02 PM
Hi, I've been trying to get DW to colour code my XML and XSLT files for 2 days now and am still getting nowhere. My MMDocumentTypes.xml file has the following :-

documenttype id="XML" internaltype="XML" winfileextension="xml,xsl,xslt,xsd,rss,rdf,dtd,vtm,vtml,csn,config" macfileextension="xml,xsl,xslt,xsd,rss,rdf,dtd,vtm,vtml,csn,config" file="Default.xml" writebyteordermark="false">
      <TITLE>
         <MMString:loadString id="mmdocumenttypes_32" />
      </TITLE>
      <description>
         <MMString:loadString id="mmdocumenttypes_33" />
      </description>
   </documenttype>

So how come it's not colouring the code? Where do the colour instructions come from?

Regs....David.
# Posted By David Gilroy | 1/3/04 12:34 AM
# Posted By Shashank | 1/11/04 10:30 PM
Hi all
All I want a book that opens with the /apology/ "Actionscript 3.0 is kinda retarded. It's in transition from being a light scripting language to a robust object-oriented language, and 3.0 is a silly little in-between step that requires you to explicitly declare every variable, but doesn't require terminating semi-colons on lines."
<a href="http://www.nakliyatankara.com " title="ankara nakliyat">ankara nakliyat</a> <a href="http://www.uluslararasi-nakliyat.org " title="ankara nakliyat">ankara nakliyat</a> <a href="http://www.lazerepilasyonn.org " title="lazer epilasyon">lazer epilasyon</a> <a href="http://www.estetik-merkezleri.com"; title="burun esteti?i">burun esteti?i</a> <a href="http://www.sacekimii.com " title="saç ekimi">saç ekimi</a> <a href="http://www.lidarehberi.com " title="lida">lida</a>
# Posted By ankara evden eve | 1/9/09 4:08 AM
<TITLE>
<MMString:loadString id="mmdocumenttypes_32" />
</TITLE>
<description>
<MMString:loadString id="mmdocumenttypes_33" />
</description>
</documenttype>
# Posted By saç ekimi | 9/8/09 9:35 AM
There are no trackbacks for this entry.

No trackback URL. Trackbacks are only allowed via interactive form. http://www.polesan.com
# Posted By tabldot yemek | 10/2/09 4:37 PM

  © Copyright 1997-2009 Ben Forta, All Rights Reserved