Skip to main content
Impressive_play01AC
Inspiring
December 19, 2017
Answered

Apply source formatting not works good in the last version (2018)

  • December 19, 2017
  • 2 replies
  • 4320 views

Hello,

I've a problem with the last version of Dreamweaver (2018) about "Edit->Code->Apply source formatting".

If I use it, the js code isn't formatted correctly.

For example, this is the correct code from a PVII extension:

<script type="text/javascript">P7_SOMop('p7SOM_1',99999,2,1,600,1,1,0,1,400,1,1,0)</script>

This is the code after that I've applied the source formatting:

<script type="text/javascript">

              P7_SOMop( 'p7SOM_1', 99999, 2, 1, 600, 1, 1, 0, 1, 400, 1, 1, 0 )

        </script>

For Google Analytics this is the results.

Before:

window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

  gtag('config', 'UA-');

After:

window.dataLayer = window.dataLayer || [];

function gtag() {

  dataLayer.push( arguments );

  }

  gtag( 'js', new Date() );

gtag( 'config', 'UA-' );

The code works good but I'd like to have the code formatted correctly.

is there an extension that can correctly format the code (in the same way as it was done on the previously DW's versions)?

Thanks

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


Hi All,

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

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

Impressive_play01AC
Inspiring
March 13, 2018

This bug is still there in the last 18.1 version.

Adobe doesn't seem very interested in giving a future to this software.

WolfShade
Legend
March 13, 2018

-Michele  wrote

Adobe doesn't seem very interested in giving a future to this software.

Sadly, this has been pretty obvious for a long time.  I've been redoubling my efforts to convince our higher-ups to make the switch to Lucee for primarily that reason.  Also, there seems to be a lot of explaining away in an effort to avoid actually doing anything that users ask for, things that should have been in place from the beginning.

https://tracker.adobe.com/#/view/CF-3502465​  (Read all comments.  You'll see what I mean.)

V/r,

^ _ ^

Preran
Community Manager
Community Manager
March 15, 2018

I checked with the team, and they said that they weren't able to address the bug in this update. This bug is still live, and will find a fix in a future update.

Thanks,

Preran

B i r n o u
Legend
December 19, 2017

we need to add voice to the FR that will implement a better code format... are you involved in alpha ?

Impressive_play01AC
Inspiring
December 19, 2017

Hi Birnou,

I opened a post on "prerelease" forum.

B i r n o u
Legend
December 19, 2017

cool.. but if you check on the prerelease forum, I've already opened two thread ... one about code formating, and one about code coloring... be careful not to over-sweeten the subject by scattering it through different discussions