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

code displays poorly in Dreamweaver 2017

Community Beginner ,
Mar 22, 2017 Mar 22, 2017

Colleagues code displays fine but when I open same file some characters are displayed one per line to far right of display window.

I am using split screen. Have tried "apply source formatting" and "word wrap". Preferences are the same between 2 computers. Thanks

687
Translate
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 , Mar 22, 2017 Mar 22, 2017

Because you're using DW's Word Wrap, and the code appears to be excessively indented, along with a vertically oriented Code View window, this is what you will see. With all that indentation and a vertical Code View window, DW just doesn't have enough room to display the code correctly.

With Word Wrap turned off, you'll need to use the horizontal scroll bar to see a more "normal" code structure.

In the Common toolbar (the vertical one), add the Word Wrap option by clicking the 3 dot icon at the bot

...
Translate
Community Expert ,
Mar 22, 2017 Mar 22, 2017

Do you & your colleague both use the same computer platform and same display set-up? 

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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 Beginner ,
Mar 22, 2017 Mar 22, 2017

We are both on MACS and are using the same Dreamweaver preferences. I am not quite sure what you mean by display set-up. I do work the code side by side with the design or live view. I don't like to let the code run so far to the right and not wrap since I need to use the design/live view of the program. We both use the same version of the operating system. Thank you

Translate
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 ,
Mar 22, 2017 Mar 22, 2017

By display I meant same resolution & DPI?

Or are you using more than one display?

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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 Beginner ,
Mar 22, 2017 Mar 22, 2017

Display, res and DPI are the same. Only using the one display.

Translate
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 ,
Mar 22, 2017 Mar 22, 2017

Because you're using DW's Word Wrap, and the code appears to be excessively indented, along with a vertically oriented Code View window, this is what you will see. With all that indentation and a vertical Code View window, DW just doesn't have enough room to display the code correctly.

With Word Wrap turned off, you'll need to use the horizontal scroll bar to see a more "normal" code structure.

In the Common toolbar (the vertical one), add the Word Wrap option by clicking the 3 dot icon at the bottom of the bar. In the dialogue that comes up, click Word Wrap. That will add the icon to the toolbar, but won't activate/deactivate it, so you'll need to click the newly added icon to disable it.

The only other option would be to clear out some of the indentation or switch to an over/under Split.

Translate
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 ,
Mar 22, 2017 Mar 22, 2017

OK.  Go to View > Code View Options.  Turn off auto indent.

Then try Apply Source Formatting again.  If you haven't already, define your code formatting in Preferences. 

CC-applySourceFormatting.jpg

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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 Beginner ,
Mar 22, 2017 Mar 22, 2017
LATEST

Thanks Nancy and Fritz. I tried turning off auto indent and applying source formatting. Still having trouble but it is a bit better - less single line for each character instances. Some code is formatted fairly neatly but a lot appears as below. Colleagues display shows same code mostly left flush. Fritz you may be right that I just have to manually delete a bunch of indents.

Translate
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