Skip to main content
BROnstott
Known Participant
January 19, 2019
Answered

Apply source formatting does not affect files ending in .php

  • January 19, 2019
  • 3 replies
  • 3370 views

Please -

I don't know how to get help with this issue.  I've seen several posts, but others seem unconcerned about it, and bug reports get no responses.

When I open a file with the extension .php,  e.g. index.php, and choose Apply Source Formatting, absolutely nothing happens!

This used to work fine, but quit when I went to DW CC.  I am currently using Dreamweaver CC 19, build 11193 on Windows 10.

I don't know if there is some option I need to change, or if this is by design, or if it's a bug.  I submitted a bug request, but it was not responded to and I can't see how to follow up on it.  The documentation seems to imply it should work.

Anyone have any advice or suggestions for moving forward?

Bert Onstott

This topic has been closed for replies.
Correct answer Paul-M

Nancy - If you will notice,

<p>This is a test.    

   

       </p>

is inside an editable region.  It should be formatted when I apply source formatting.  It isn't.


3 replies

Legend
January 20, 2019

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
January 19, 2019

As you can tell from the link below, this is a known bug. 

Adobe Dreamweaver: Bugs: Hot (997 ideas) – Adobe Dreamweaver CC: Feature Ideas

One workaround, save file as .html, apply source formatting and then save as .php file.

Another workaround,  revert to an older version of DW from CC Desktop App.

Nancy O'Shea— Product User & Community Expert
BROnstott
BROnstottAuthor
Known Participant
January 19, 2019

Nancy - The bug you referenced is unrelated to mine. 

BenPleysier
Community Expert
Community Expert
January 20, 2019

just to add to what has already been said, check your document to make sure that there are no coding errors, Dreamweaver tends to misbehave when an error is encountered.

To check, go to Ready to check - Nu Html Checker

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Legend
January 19, 2019

I know this doesn't help you much. I'm on Windoes 10 and the same version of Dreamweaver and Apply Source Formatting is working for me with PHP files.

Have tried Apply Source formatting on multiple files or tried creating a very simply PHP page and see if it works?

Paul-M - Community Expert
BROnstott
BROnstottAuthor
Known Participant
January 19, 2019

That's really odd.  I wonder why it does not work for me? It seems there is no chat or phone support available for DW.

Legend
January 19, 2019

My experience is that using the apply source formatting on PHP pages does weird things to my code, worse case scenario is sometimes its broken PHP code completely . I have never come across it not working at all tbh but you're not the first to report it. You could try Nancy's workaround of changing the extension of your file(s) temporarily.

I use a different program if I need to format PHP pages, due to issues with PHP code and the apply source formatting tool in Dreamweaver

I would also add your weight to the the Dreamweaver uservoice website, the theory is the more people that report an issue the higher priority it should get.

Paul-M - Community Expert