Skip to main content
Impressive_play01AC
Inspiring
November 13, 2017
Answered

Apply source formatting to the php pages, strange behaviour

  • November 13, 2017
  • 2 replies
  • 5166 views

When I try to apply the source formatting to the php pages, the code show indent and spaces not necessary.

Instead if I use the same process on a html page, the source code is formatted correctly.

Is a bug or Dreamweaver (Adobe) consider PHP code in a different way?

PHP page (source formatting wrong):

HTML page (source formatting correct)

This topic has been closed for replies.
Correct answer Kratika Agarwal

I'm not going to speak for everybody but the issues I was aware off seem to be fixed now in the pre release (15073) ...

They were:

1) Non-breaking spaces and line breaks added in PHP code in some instances when using the 'format source code' tool

2) Minor issues with settings in tag libraries not being obeyed when using 'format source code' tool

Thanks ....


Hi All,

We are happy to inform you we have further stabilized the PHP source formatting issues in our latest prerelease drop 15081.

Please give it a try and share your feedback.

Let us know if it fixes your issues.

Please find the prerelease invite link Adobe Prerelease

Thanks

Dreamweaver Team

2 replies

Impressive_play01AC
Inspiring
November 14, 2017
pziecina
Braniac
November 14, 2017

-Michele  wrote

Today someone from Adobe labeled it as "Started work"

The question is, which type of source formatting will they apply?

Community Manager
March 1, 2019

No, absolutely no progress.

Adobe usually release only two updates yearly (March and June/July) before of the major upgrade (that correspond autumn of each year, Adobe Max), so we need to wait a lot of time (always that they are working about it).

The only workaround for me is to switch to the previous version 2015 (the last stable version of Dreamweaver).


Hi All,

We are happy to inform you we have addressed a couple of PHP source formatting issues in our latest pre release drop 15073.

Please give it a try and share your feedback.

Let us know if it fixes your issues.

Please find the pre release invite link Adobe Prerelease

Thanks

Dreamweaver Team

pziecina
Braniac
November 13, 2017

Actually I prefer the source formatting for html files that you show for php files.

Which just goes to prove that everyone is different, and no matter what they do, they will not please everyone.

Impressive_play01AC
Inspiring
November 13, 2017

Yes, but I'd like an uniform behaviour (always that Dreamweaver is still considered a professional editor).

This post is to understand if these different behaviours are wanted or not by Adobe.

Can anyone in the Technical Staff answer/reply me?

pziecina
Braniac
November 13, 2017

Users have complained about the different source formatting in Dw since the Brackets code editor was incorporated into it in Dw 2017, and no one has said why it works that way. Maybe it has to do with Brackets being open source, and each contributor implementing the feature(s) how they want, without a standard being imposed.

I don't think anyone from the Dw dev team will answer why, (at least they have not so far). The 'standard' stock answer has become a, 'if you do not like it use Dw2015'. Which sort of defeats the purpose of paying for newer features, if you must switch versions to use them.