Skip to main content
Participating Frequently
July 22, 2020
Question

Dreamweaver breaks PHP code

  • July 22, 2020
  • 5 replies
  • 2292 views

 I will write through a translator. Adobe Dreamveaver breaks PHP code in many places when formatting. How to COMPLETELY disable PHP code formatting, but leave HTML formatting ???

 

And this is just what I noticed !!! I tried to set it up via https://helpx.adobe.com/en/dreamweaver/using/format-css-code.html But it didn't work for me. How to disable incorrect php formatting? I used to have an old DREAMVEAVER 2015 and everything worked fine on it

    This topic has been closed for replies.

    5 replies

    kamsarAuthor
    Participating Frequently
    May 12, 2023
    Has there been a solution to my problem?
    Nancy OShea
    Community Expert
    Community Expert
    May 12, 2023

    Since 2021, Dreamweaver has received only minimal updates -- mostly security and compatibiliy patches.  See link below for more details.

    https://helpx.adobe.com/dreamweaver/using/whats-new.html

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    July 23, 2020

    Make sure to report the bug here: https://dreamweaver.uservoice.com/forums/382851-adobe-dreamweaver-bugs

    Be sure to note:
    The exact DW version, down to the language installed
    OS and version
    The exact steps to replicate the problem.

    This one has been squashed in the past and seems to have made a comeback.

    kamsarAuthor
    Participating Frequently
    July 29, 2020

    They are deceiving me. I waited 48 hours, they didn't even try to solve my problem. Then they offered to connect to the server via SFTP! What does server connection and code formatting have to do? I have been using this program for over 10 years, it has completely deteriorated, I will demand a refund of my funds. They promise, then all over again, they apparently do not even understand programming and do not see the problem point-blank. How can people not versed in code solve such problems and make such programs?

     

    Here's what they answered me a week ago:

    Here's what they answer me today:

    This is complete nonsense. I cannot spend so much of my time solving problems with the program.

    Nancy OShea
    Community Expert
    Community Expert
    July 29, 2020

    I'm sorry for your poor experience. You're right about one thing.  Online chat agents don't build the software and they don't use it.  Their job is to handle billing, installation and account activation issues.  What they can't handle directly is supposed to be directed to more knowledgeable technical support engineers.  Obviously, there is a shortage of those, no doubt because of the Covid-19 pandemic.

     

    #1 File an official bug report from your Help Menu.  Hopefully the engineers will be able to recreate the problem and send out an incremental update to fix it in the the coming weeks. 

     

    #2 Uninstall your current version and revert to the previous one.

     

    Nancy O'Shea— Product User & Community Expert
    kamsarAuthor
    Participating Frequently
    July 23, 2020

    I have the latest licensed version installed. Thanks for the answers, I want to completely disable PHP formatting, leaving only HTML and CSS formatting. Regardless of the type of file, since my code may be mixed.

    Legend
    July 23, 2020

    I'm not aure how easy that would be to disable PHP formatting alone .... You could use the format selection option

    Paul-M - Community Expert
    kamsarAuthor
    Participating Frequently
    July 23, 2020

    I tried adjusting the formatting, it keeps messing up my code anyway. And how should I be?

    Nancy OShea
    Community Expert
    Community Expert
    July 22, 2020

    What kind of document is it?

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    July 22, 2020

    Are you talking about unwanted spacing or is it completely breaking your code?

    What version of Dreamweaver are you using? More recent versions of Dreamweaver had fixed a lot of issues with PHP formatting.

    Dreamweaver uses JS Beautify and a PHP plugin, on Wndows for example look here: C:\Program Files\Adobe\Adobe Dreamweaver 2020\www\extensions\default\BracketsDWBeautify\default.jsbeautifyrc - at the bottom see the PHP options.

     

    Make a backup before editing, you can also put .jsbeautifyrc file in you project root with your custom settings.

    Paul-M - Community Expert