Jump to content

Need to have Dreamweaver read HTML pages as PHP


Recommended Posts

think this may be similar to the problem Canadiengland is also having.

if I open a page named anything.php, DW8 knows its a PHP file and colors the code appropriatly.

the problem is...

in my new job, all of their pages have .html extensions - even though they are PHP pages.  The server config knows they are PHP despiste the extension but dreamweaver doesn't and therefore, I don't get the neat color coding.

any ideas on how to get Dreamweaver to under stand that my .html files are really .php files with the wrong extensions?
Link to comment
Share on other sites

I guess I have to do everything the hard way.

found a hack for this problem.

when dreamweaver loads it includes an xml file located at:
Program Files/Macromedia/Dreamweaver 8/Configuration/DocumentTypes/DocumentTypes.xml

on line 2, I took the "html" extension out of the list of HTML recognized pages in the [i]winfileextensions [/i]list.

then on line 74, I added "html" to the list of recognized extensions for Mysql-PHP

so now when Dreamweaver opens a file ending in .html it assumes it is a PHP file and applies the proper color coding and other features.

hope this helps someone else someday. and if someone knows an easier way to modify the settings - without hacking the config files - please let me know!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.