PHP Code Coloring in HTML Files for Dreamweaver

December 11th, 2008

I use the .html extension for many of my php files for varying reasons. I had given up on getting Dreamweaver to color the code properly until I stumbled upon this post:

http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/8b0065838857c78b/49bedbef1f146e65?lnk=raot&pli=1

First, copy this file from the app config folder:

C:\Program Files\Adobe\Adobe Dreamweaver
CS3\configuration\CodeColoring\PHP.xml

To the user config folder:

C:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver
9\Configuration\CodeColoring\

Then open PHP.xml in your favorite editor. You need to add HTML to all
of the doctype lists Change every occurrence of this:

doctypes=”PHP_MySQL”

to be:

doctypes=”PHP_MySQL,HTML”

Save and close. If DW is running, close it. Now restart DW.

Worked like a charm. I’m using OSX, so just did a search for the appropriate files and found the folder structure to be about the same as above.

Voila. Thank you Randy Edmunds!

Kay & Warburton – Chartered Accountants

December 9th, 2008

Kay & Warburton - Chartered AccountantsA new website for Kay & Warburton – the largest independent practice of chartered accountants in Canada dedicated to serving the entertainment and media industry.

Christa Couture provided the initial homepage design and I ran with it from there. Nice clean and simple site. Kudos to the client for pushing me to polish the Flash slide show widget and improve it!

http://kwca.com