Skip to main content
Known Participant
June 14, 2017
Answered

(DW 2017) Issue with php pages and Apply Source Formatting

  • June 14, 2017
  • 2 replies
  • 1465 views

I've reported this bug several months ago but Adobe (as always) not listen.

Edit -> Code -> Apply Source Formatting

Above commands create wrong source formatting code with javascript in the php pages.

For example with Google Analytics, before (correct):

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i=i||function(){

(i.q=i.q||[]).push(arguments)},i.l=1*new Date();a=s.createElement(o),

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

...

after (wrong):

( function ( i, s, o, g, r, a, m ) {

i[ 'GoogleAnalyticsObject' ] = r;

i[ r ] = i[ r ] || function () {

( i[ r ] . q = i[ r ] . q || [] ) . push( arguments )

}, i[ r ] . l = 1 * new Date();

a = s . createElement( o ),

m = s . getElementsByTagName( o )[ 0 ];

a . async = 1;

a . src = g;

m . parentNode . insertBefore( a, m )

} )( window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga' );

....

Other problem with the formatting code.

With php pages the code create a different formatting:

Before (correct):

<body>

<section>

...

</section>

After (wrong):

<body>

  <section>

  ...

  </section>

Could someone report this bug to Adobe?

The bug it's already been reported on the bug section but nothing happened.

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

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

2 replies

Community Manager
April 24, 2019

Hi,

we are happy to inform you that we have fixed a couple of bugs in our latest Prerelease drop 20.0.0.15092.
Please give it a try and let us know if your issue is fixed and share your feedback.

Prerelease Invite link:
https://www.adobeprerelease.com/beta/9EB451B5-D2E8-46E5-AFA2-78C85442FFA2/participate/DD4E B148-308D-435D-930A-92C1167C8304

Regards
Dreamweaver Team

Kratika AgarwalCommunity ManagerCorrect answer
Community Manager
March 1, 2019

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

Community Manager
April 7, 2019

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