Skip to main content
Known Participant
Dec 20, 2016 10:10 AM UTC
Answered

Dreamweaver CC 2017 "Apply Source Formatting" works wrong

The "Edit > Code > Apply Source Formatting" doesn't work correct for PHP-Code.
I'm using Dreamweaver CC 2017.0.1 Build 9346

Code-Before:

Code-After:

This code doesn't work anymore!

This topic is closed to new replies. Start a new post to keep the conversation going.
Paul-MCorrect answer
Legend
Dec 12, 2020 6:55 PM UTC

@Preran

Is there a solution for the space problem?


Hi - Are you talking about spaces in PHP code when apply source formatting? Follow these instructions to reduce the spacing

:

On windows you can locate this file and make a backup, as you are going to edit it:

C:\Program Files\Adobe\Adobe Dreamweaver 2021\www\extensions\default\BracketsDWBeautify\default.jsbeautifyrc

 

Look at the PHP section at the bottom and some rules you can change to reduce the amount of spacing inserted in PHP code

change:
"space_after_anon_function": true,
to
"space_after_anon_function": false,

 

change:
"space_before_conditional": true,
to
"space_before_conditional": false,

 

change
"space_in_paren":true
to
"space_in_paren":false

Paul-M - Community Expert

9 replies

Preran
Legend
Dec 21, 2016 3:07 PM UTC

Hi MM-Webconsulting,

Thank you for reporting this issue. The team has logged a bug for it. Stay tuned for updates.

Thanks,

Preran

Translate
Participant
Aug 2, 2017 3:35 PM UTC

Why everywhere leaves space !!! I started to hate !!!!!

Version 2017.5

Translate
Known Participant
Dec 11, 2020 8:48 AM UTC

@Preran

Is there a solution for the space problem?

Translate
ankushr40215001
Inspiring
Dec 20, 2016 2:52 PM UTC

Hello,

We are checking on this with our product team, will update you as soon as get any info.

Stay tuned.

Regards,

Ankush

Translate
BenPleysier
Community Expert
Community Expert
Dec 20, 2016 12:28 PM UTC

Please pass this on

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