Jump to content
xisto Community
Mavrik

Dreamweaver Php Help

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.