Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 04:18:45 AM

Pages: [1]   Go Down
  Print  
Author Topic: Beginner's Question - Code Formatting  (Read 874 times)
George
Space Explorer
***
Offline Offline

Posts: 9


WWW
« on: May 29, 2004, 08:55:21 PM »

I may be anal but I prefer while working in code view my code stay nice and neat.  I have Automatic Wrapping (Preferences - Code Format) set at 76 but when editing, my text ALWAYS goes beyond the page limit.  I can't seem to wrap my text unless I purposely misspell a word and perform a spell check.  Does anyone know if there is any way to automatically wrap my text while editing so I never go beyond the page limit?  I'm using Dreamweaver MX on a Windows 2000 OS.  Thanks ahead of time for any assistance offered.

Thanks!
Logged
satirista
Spacescooter Operator
*****
Offline Offline

Posts: 31


WWW
« Reply #1 on: June 02, 2004, 08:45:01 AM »

This is going to sound stupid, but...

Have you tried editing the code (allowing the lines to extend past 76), then clicking refresh in the property inspector, then closing the code view and saving the page, then re-opening the code view to see if the lines are now wrapped?

Just a thought. I'm thinking about how it's possible to remove data from a table cell, decreasing its height, but the height appears to remain until you click outside the table, when it snaps down to the correct size.

Good luck!
Logged

Jax
Spaceship Captain
*****
Offline Offline

Posts: 120


WWW
« Reply #2 on: June 03, 2004, 05:44:01 AM »

satirista, has a point... Dreamweaver isn't the best at refreshing itself.  However, I don't tend to make my code wrap, I tend to put hard breaks in there myself... although if you're coding in VBScript that quickly becomes a problem.  
I only personally did that in MX 2004 so can't comment on version issues...
Logged

Jax Out.
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #3 on: June 03, 2004, 12:00:40 PM »

I think Dreamweaver doesn't do automatic line breaks in code view because if they're in the wrong places, they could add undesired carraige returns in the output.

If you're talking about automatically wrapping text, not code, edit the text in design view and DW will properly add line breaks in the code view. If the text block is an old one that hasn't been wrapped, go into the text, type a character, and delete. That should refresh the code.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
Pages: [1]   Go Up
  Print  
 
Jump to: