12 Replies Latest reply on Mar 15, 2018 6:15 AM by -Michele

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

    -Michele Level 1


      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 )



      For Google Analytics this is the results.


      window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'UA-');



      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)?