View Single Post
  #5 (permalink)  
Old April 4th, 2007, 08:43 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Sorry, but I don't agree.

For some languages it doesn't matter if you add additional lines.

However, for languages like VB.NET this could cause serious problems. I can already envision posts where people complain that:

Dim myPerson As New
   Person(id)

doesn't work; simply because a line break was introduced where it's not allowed.

I see three ways to fix it:

1. Ask people to format their code. I occasionally do that, with little results usually.

2. Add a <div> with overflow: auto; around the code. That way, the div gets scrollbars when the code is too wide.

3. Leave it like it is, and live with it.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.