Skip to main content
Known Participant
February 10, 2021
Question

DW 2019 macOS: "Apply Source Formatting" has no effect

  • February 10, 2021
  • 1 reply
  • 1255 views

When I use the command "Edit > Code > Apply Source Formatting"*  in a HTML or CSS file it has no effect.

 

Is there a way to use this command?

 

Thanks.

This topic has been closed for replies.

1 reply

Jon Fritz
Community Expert
Community Expert
February 10, 2021

Is the code free of structural errors?

Run it through the validator at http://validator.w3.org/nu and repair any issues that are listed.

Errors in the source code can cause DW to get confused and break a lot of the features in the program.

Known Participant
February 11, 2021

Yes, the code is free of errors.
I used a minimal HTML5 testcase, freshly created.

<p>foo</p><p>bar</p>

 

Jon Fritz
Community Expert
Community Expert
February 11, 2021

Thanks for testing Jon.
Did you used the Version 2019 on macOS?

Of course I checked the tag library before I posted. But it is the default. With line breaks before and after the P element.

My version 2019 is freshly installed. So it is very unlikely, that resetting the preferences can heal anything. But I keep it in mind as a possible step. I don't want to loose all my server configurations in the site management.

I will wait until someone who uses the version 2019 on macOS reads this thread.
May be it is a bug in version 2019?


Sorry, I'm not on a Mac, but the advice is sound for either Mac or PC versions.

It really doesn't matter if the program was installed two years or two minutes ago. The Preferences file can go corrupt, seemingly randomly, and can cause all kinds of weird behaviors, even on a fresh install. 

Restoring Preferences is "Step 1" for almost all DW troubleshooting and will clear a ton of oddities. This "could" be one of them.

Essentially, don't knock it till you try it, LOL.

It could also just be a bug, 2019 was full of them. It wasn't as bad as 2018, but still not great. In the two full releases since 2019, Adobe has squashed more bugs, but they never go back to older versions to fix them, they add them to new releases as they go. 2019 is no longer in development, so it may be worthwhile to install the latest version. Just make sure to uncheck the "Remove Older Versions" option when installing and you can test without losing the old version.

Full releases can be installed on the same machine at the same time (2019 and 2021 for example). Dot releases will overwrite the older version of the same release (a version like 2021.2 would overwrite 2021.0 but leave 2019 alone).

It's handy for times when Adobe pooches the program like they did when they first added the Brackets code engine in the early days.