Dreamweaver CC 2017 "Apply Source Formatting" works wrong

Explorer ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

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_before.jpg

Code-After:

code_after.jpg

This code doesn't work anymore!

Views

1.3K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Dec 21, 2016 Dec 21, 2016
Hi MM-Webconsulting,Thank you for reporting this issue. The team has logged a bug for it. Stay tuned for updates.Thanks,Preran

Likes

Translate

Translate
Adobe Community Professional , Dec 12, 2020 Dec 12, 2020
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...

Likes

Translate

Translate
Adobe Community Professional ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Please pass this on

Wappler, the only real Dreamweaver alternative.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Hello,

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

Stay tuned.

Regards,

Ankush

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 21, 2016 Dec 21, 2016

Copy link to clipboard

Copied

Hi MM-Webconsulting,

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

Thanks,

Preran

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 02, 2017 Aug 02, 2017

Copy link to clipboard

Copied

Başlıksız-1.png

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

Version 2017.5

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

@Preran

Is there a solution for the space problem?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

This is a 4 year old thread that has already been answered.  

Please start a new discussion. And state the DW version # and OS you're using.

Thank you.

 

Nancy O'Shea, Adobe Product User & Community Professional
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 12, 2020 Dec 12, 2020

Copy link to clipboard

Copied

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, ACP

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 13, 2020 Dec 13, 2020

Copy link to clipboard

Copied

Thanks @paul That's the solution!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 13, 2020 Dec 13, 2020

Copy link to clipboard

Copied

LATEST

you're welcome 😀

Paul-M, ACP

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines