Monday, June 11, 2007

Add XML editing support for Apple's PLIST to Dreamweaver CS3

Dreamweaver, unlike pretty much every other XML editor I've used, actually reads the DTD line in XML files and automatically imports the rules for the document even if it's on the Internet.

\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\DocumentTypes\MMDocumentTypes.xml is the document which configures document type by extension for DW, so scroll down to the line that begins with <documenttype id="XML"... and look for the winfileextension and macfileextension attributes. Add plist to the comma-delimited list of extensions in both attribute values, save and restart DW.

Now, when you edit a .plist file, DW will read the DTD and you can edit it with autocomplete for all the correct tags and attributes.