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

dreamweaver tabbing/indentation issues

New Here ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

Hey everyone,

Recently, a coworker's Dreamweaver has begun adding bizzare amounts of tabbing on every line of code in every html file she works in, and it's driving us all crazy, because every time we open a file after she's saved them, they're incredibly difficult to read and work in, and trying to fix them wastes a lot of time.

So, here's an screenshot of one of our webpages:

normal page.png

And this is what it looks like whenever she re-saves the file:

coworkers page.png

She doesn't have to even do anything to the page, she just has to save it. This happens whether she doesn't do anything to the code, and saves it as a new html document, and also if she simply adds a single space somewhere in the code, and saves the file as itself. I've worked in Dreamweaver since it was owned by Macromedia, and I've never seen this happen before.

One interesting thing about this, is that her Dreamweaver only ever adds all this extra spacing within the <Article> tag. Nothing gets added in the metadata up top, or within the <head>, or any of the javascript at the top or bottom of the pages. It's weird.

Anyone have any ideas as to what's going on? We both are working on the same computer systems, Mac G6's running OSX 10.11.4, and we're both using CC Dreamweaver 2017.5.

Views

1.1K

Translate

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 , Aug 17, 2017 Aug 17, 2017

Could be a code error, like a missing end tag, confusing DW into wanting things tabbed oddly. Run the validator under File > Validate > Current Document W3C or at http://validator.w3.org/nu to get a listing.

I've never seen this personally, but when DW starts doing odd things on its own, that's what I check first.

It may also be worthwhile clearing their program cache file and/or restoring preferences. Those two things will tend to clear odd "just started doing it" behaviors in DW...

Deleting a corrupted cache file

...

Votes

Translate

Translate
Community Expert ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

Could be a code error, like a missing end tag, confusing DW into wanting things tabbed oddly. Run the validator under File > Validate > Current Document W3C or at http://validator.w3.org/nu to get a listing.

I've never seen this personally, but when DW starts doing odd things on its own, that's what I check first.

It may also be worthwhile clearing their program cache file and/or restoring preferences. Those two things will tend to clear odd "just started doing it" behaviors in DW...

Deleting a corrupted cache file

(renaming the entire personal config folder from the above is another step that may work if clearing the cache file doesn't)

Unusual behavior in Dreamweaver? Try restoring preferences.

Votes

Translate

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
New Here ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

OP here again.

I should have mentioned this also, but forgot: The code only looks messed up after she saves it for everyone else in the office. When she reopens the messed up file, it looks fine still on her computer. ¯\_(ツ)_/¯

Votes

Translate

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 ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

If it's not a corruption in the cache or prefs...

Hmm, I wonder if your screen size/word-wrap settings are causing it to look as if the code is indented oddly when it's not?

Moving from a wider Code View to a narrower one could make it appear as if the code has gone bananas due to the Word-Wrap setting in the Common Toolbar. Basically, instead of a scroll bar appearing when a line of code is too long for the window, DW will shove it onto the next line and blow the rest of the indentation to follow out of whack.

Looking at her code on your machine, what happens if you widen the Code View pane?


Does the code "snap" into a more correct alignment when you hit a certain width?

Just spitballing some ideas.

Votes

Translate

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
New Here ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

We've tried testing it to see if it was a Word Wrap discrepancy, but it wasn't. We all have the same sized dual monitors and we all work only in Code View, so I don't think it's a viewport issue. She's kind of busy today trying to get some projects done, so we haven't had a chance to try clearing her cache or anything yet. I'm hoping that will resolve it. If not, the only thing i could think of is getting I.T. up here to reinstall DW.

Votes

Translate

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 ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

If you do ultimately end up going the re-installation route, it's best to use the CC Cleaner Tool to make sure every speck of the program is removed from the system and nothing is left behind to affect the new installation...

Use the Creative Cloud Cleaner Tool to solve installation problems

Votes

Translate

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
New Here ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

LATEST

Okay, I think we figured out what it was.

She cleared DW's cache and restored her preferences, like you suggested, and when she opened up a clean file and re-saved it, nothing changed when we opened the file after her save. Yay! So whatever that did, seemed to fix it.

Something else I noticed, is that when she opened one of our clean files now, her tabbed indentations were off. Instead of the 4 spaces everyone else sees, all of her indentations were now only 2 spaces. It's still better than what DW was displaying before; at least now it can be read easily. So I checked her Preferences > Code Format dialog box, and her Indent options were set to 3 Tabs, and her Tab Size to 1. Everyone else in the office has their Indent set to 2 spaces, with a Tab Size of 4, so we changed her preferences to match.

Thanks for your help!

Votes

Translate

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