Mavrik 0 Report post Posted November 9, 2004 I've taken over a PHP application and all of the pages are saved as .html. Consequently, Dreamweaver isn't applying the normal syntax coloring to the PHP code as it would if the pages were saved as .php. Has anyone encountered this or know how I might get Dreamweaver to recognize the PHP without having to change the file extentions to .php?Much appreciated! Share this post Link to post Share on other sites
MacFly 0 Report post Posted November 10, 2004 The whole point of syntax colouring is to be able to differenciate. Why would you want php syntax colouring with HTML. To make the site compliant for dreamweaver make all pages .php. Dreamweaver should update links accordingly but if not the use the links sitewide option later. Tag the php code with <?php ?>to seperate it from the HTML and Dreamweaver will colour both syntax correctly.Sounds like the php application is using HTML templates and should be so easy to manage in Dreamweaver. A lot of developers like to keep HTML seperate from the server side code for ease of management. Im afraid if your stuggling with editing a site set out in this way, then you took on a project that is too deep for you. Share this post Link to post Share on other sites
Mavrik 0 Report post Posted November 10, 2004 I understand the concept of syntax coloring as well as how to use php tags within html. That is not what I'm asking. The files are SAVED with a .html extension, therefore not applying the syntax coloring at all. Simply resaving the files with a .php file extension is not an option as the site was intentionally designed this way. I'm not struggling nor is the project too deep for me. Perhaps you should read postings more clearly before replying. Share this post Link to post Share on other sites