Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Applying "source formatting" makes this page look weird!

Engaged ,
Apr 18, 2017 Apr 18, 2017

Copy link to clipboard

Copied

I can't figure out why when I apply "Source Formatting" the page looks unusual and is difficult to work with. I want each new line to be set "flush left." For no apparent reason, after I click the "Apply Source Formatting" icon, the elements  get indented. I don't want that.

How can I make this page have the same formatting style as my others?

Here's what I've set up for a current page. . .

Screen Shot 2017-04-18 at 8.13.38 PM.png

And here's what the same page looks like after I click "Apply Source Formatting."

Screen Shot 2017-04-18 at 8.14.07 PM.png

Views

1.2K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 19, 2017 Apr 19, 2017

They have internet access, you can give them the direct link to the forum post at - https://forums.adobe.com/message/9463602

Votes

Translate
LEGEND ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

The problem with source formatting is that no matter how it is done, it will not be done how everyone wants.

You can go into preferences, select the code format option, then select the advanced formatting option, to customize how formatting is applied.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Hello, pz:

Sorry. I should have been clearer.

This is the only page of 1,000 or more that reformats with such excessive and undesirable indentations. All other pages (as far as I know) reformat without excessive, compounded indentations.

Might there be something that causes individual pages to perform independently when Apply Source Formatting is enacted?

Wondering Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Have you checked the language setting at the bottom r/h side of the document window is the same as the other pages?

I know that there have been a number of complaints about source formatting, but those are in general by users not defining a site, or creating html emails.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

PZ:

Kindly provide a screen shot of where to find the language options icon. I see nothing of the sort anywhere on my page.

Thanks.

Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

I'm on my iPad at the moment, and will not be back at my desktop until tomorrow.

Hopefully another forum user will provide a screen shot before then, but it should be a small box at the bottom r/h side, that is used to select the type of language, such as html, php, coffescript, javascript, css etc.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

If you go to the image of the comparisson between the 2015 an 2017 UI at -

https://helpx.adobe.com/dreamweaver/using/whats-new.html

Where it says "modern user interface", enlarge the image and you will see a small box with dropdown selector that says 'css', that is the selector.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

I personally detest indenting except in JS and PHP code.  The fact that DW indents CSS code is tolerated only because I minify it at the end.

I have indenting turned off in my Code formatting Preferences.   Also Auto Indent is disabled in my Code View Options.   Script Language is beside your code error indicator.  See screenshot.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Hello, Nancy!

Thanks for weighing in on this. After reading your comment, I modified the preference setting and deactivated Auto Indent from the Code View Options tab. I then closed DW CC and reloaded it. The excessive (undesirable) over-indentations reappeared! See it here. . .

Screen Shot 2017-04-19 at 11.35.55 AM.png

The markup in Code View was still indented excessively; and an empty line was automatically inserted above the <head> tag.

I then manually deleted all the indentations and that line space. Here's what I want to see. ..

Screen Shot 2017-04-19 at 11.34.42 AM.png

For no apparent reason, the (darn) indentations and added line(s) appears, despite the preferences I'd made, as follows:

Screen Shot 2017-04-19 at 11.33.59 AM.png

Screen Shot 2017-04-19 at 11.34.19 AM.png

And the PHP language shows as it should.

Screen Shot 2017-04-19 at 11.36.19 AM.png

Please note: When I open an HTML page, there are no indentations, as follows:

Screen Shot 2017-04-19 at 11.48.43 AM.png

Is this a problem that PHP pages have that HTML pages don't?

Can someone at Adobe Systems help me by screen-sharing me through a corrective process?

Here's hoping.

Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

What have you done in Tag Libraries? 

On my end, I have selected Formatted but NOT Indented on each individual tag.  It takes a while to set up initially.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

If you still have the older version of DW that was formatting code the way you like when you hit Apply Source Formatting, you will probably need to go through the Edit > Tag Libraries (in the older one) and then Tools > Tag Libraries (in the newer version) and make sure you have everything set the same way between the two programs. Pay particular attention to the <head><style> and <body> tags (the ones you show with the undesired indentation)and make sure all of the settings are identical.

Also make sure you have no structural html or css errors in your code, DW will do all kinds of weird things if you're working with invalid mark up.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Nancy:

I've changed the tag editor settings; yes, it took a while!

Sadly, no change in the format of the code.     ( ; - (

Jon:

I don't have an older version. Nevertheless, the problem occurs on only some pages.

The current problematic page has no WC3 errors:

https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.warrencampdesign.com%2FheartyBoys%2Fquizzes%2Fquiz...

. . . yet, I cannot get the code to format as desired, without the excessive indentations and undesirable line breaks.

And I see another problem that this Apply Source Formatting operation causes: the commented out entries for lines drop to the next line!!!

See it here:

Screen Shot 2017-04-19 at 1.41.36 PM.png

Can an Adobe technician help me with this? Please?

Thank you.

Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

wcamp  wrote

Can an Adobe technician help me with this? Please?

Thank you.

Warren


You can try contacting them directly via chat here:

Contact Customer Care

The forums are user to user based, there aren't many actual Adobe Technicians here at all (if any).

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Technicians don't hang out here.  They have bigger fish to fry.

If you want tech support, contact Adobe by phone or Online Chat.

My only other guess is that the document itself contains manual breaks & tabs you can't see in DW.  Have you tried opening it another plain text / code editor yet?

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Thanks, Nancy.

Okay. I'll initiate contact with the support staff. I simply wondered if the comments and screen shots that I've made today on this forum will be easily accessible to the technician. Hope so.

Regarding your inquiry about my opening the page in a plain text/code editor, I'm not aware of the process. Is Apple's "Pages" the appropriate software app? If not, what app does a Mac lover use?

Tell me also what exactly I need to copy/paste from the code to the text editor app. And what am I to look for? Please advise; never done this previously.

Thanks.

Warren

_______

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

They have internet access, you can give them the direct link to the forum post at - https://forums.adobe.com/message/9463602

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Excellent! Thanks for the good news and the direct link.

I'll let you three know what I learn is needed to [hopefully] correct this anomaly.

Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Brackets, Coda, NoteTab Light, Text Edit, TextWrangler, Sublime Text...

http://www.wpbeginner.com/showcase/12-best-code-editors-for-mac-and-windows-for-editing-wordpress-fi...

File > Open

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Before I buy software for this analysis, can you tell me what to enter and what to look for that would flag a problem? Is there a sample of what can be found to flag such a problem?

Otherwise, I'm hesitant to make the investment and be unable to use the software as needed.

Thanks, Nancy.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Investment??  Most if not all of those are open source or they offer a free trial period.   I don't think you need to buy anything.

I don't know what you're looking for.  But if you open it in another editor and see strange characters, that might a clue to why it's not formatting properly in DW.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

LATEST

Hello Nancy and Jon:

After waiting for ten work days, I've finally heard back from a technician who'd shared my screen from day 1: April 25. After fully appreciating the source formatting problem, I believe that she told me, "Senior techs will correct the problem in the next upgrade." She barely spoke English so I can't be certain that that's what she said. Hopefully, Adobe Systems will correct this formatting anomaly.

In the mean time, I've learned to use this workaround:  Command All > Outdent Code.  It's frustrating to realize that I must do that workaround on PHP pages while HTML pages show no signs of this anomaly. I'll wait patiently for the true fix.

I thank you both for your assistance in this regard.

Warren

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines