Skip to main content
Participant
March 13, 2019
Answered

"apply source formatting" PHP add spaces in arrays text-type index

  • March 13, 2019
  • 3 replies
  • 411 views

"apply source formatting" PHP add spaces in arrays text-type index
Fore example:

$array_name["ArrayIndex"] become $array_name[" ArrayIndex "] and it doesn't work anymore...

Can you help me?

This topic has been closed for replies.
Correct answer Paul-M

I can concur with Jon - I did a lot of checking of the 'apply source formatting' tool with the latest prerelease and it appears as though all the issues associated with inline PHP code, plus spaces and line breaks incorrectly being added to PHP code in certain instances, all seems to have been fixed.

Sit tight and wait for the next version/build of Dreamweaver ...

You can have more than one verion of Dreamweaver installed, so, in the meantime as a workaround you could use Dreamweaver CC 2015 for source formatting.

3 replies

Legend
April 3, 2019

Paul-M - Community Expert
Paul-MCorrect answer
Legend
March 13, 2019

I can concur with Jon - I did a lot of checking of the 'apply source formatting' tool with the latest prerelease and it appears as though all the issues associated with inline PHP code, plus spaces and line breaks incorrectly being added to PHP code in certain instances, all seems to have been fixed.

Sit tight and wait for the next version/build of Dreamweaver ...

You can have more than one verion of Dreamweaver installed, so, in the meantime as a workaround you could use Dreamweaver CC 2015 for source formatting.

Paul-M - Community Expert
Jon Fritz
Community Expert
Community Expert
March 13, 2019

That's a known issue and has been fixed in the pre-release that was announced on March 1st.

Applying source formatting inserts bugs in php code.