Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Double Spacing Code in Editors
Double Spacing Code in Editors [message #185220] Wed, 20 December 2006 21:51 Go to next message
Eclipse UserFriend
Originally posted by: jonathan.barnard.fnf.com

When I view code in JavaScript, Java and JSP editors the code is double
spaced. When I view the code in another text editor like TextPad it is
still single spaced. The really wierd thing is when I save the file it is
still single speced in TextPad. Can I turn this off?

I'm currently on:
Eclipse SDK

Version: 3.1.1
Build id: M20050929-0840

(c) Copyright Eclipse contributors and others 2000, 2005. All rights
reserved.
Visit http://www.eclipse.org/platform

This product includes software developed by the
Apache Software Foundation http://www.apache.org/
Re: Double Spacing Code in Editors [message #185244 is a reply to message #185220] Wed, 20 December 2006 23:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.there.127.0.0.1

Jon Barnard wrote:
> When I view code in JavaScript, Java and JSP editors the code is double
> spaced. When I view the code in another text editor like TextPad it is
> still single spaced. The really wierd thing is when I save the file it
> is still single speced in TextPad. Can I turn this off?

You don't say what your platform is, but it certainly sounds like you're
editing a file with different line terminators than your platform uses
as a default. Maybe Eclipse thinks it's a binary file rather than a text
file? Alternately, you could set -Dline.separator when you run Eclipse -
but you shouldn't need to do that. Look at the file in a hex editor and
see what you've got.

Andrew Jr.

============================================================ ==========
IBM Phoenix Labs (OTI)
2929 North Central Avenue
Phoenix, Arizona, USA 85012
Re: Double Spacing Code in Editors [message #185339 is a reply to message #185244] Thu, 21 December 2006 10:21 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Andrew Cornwall wrote:

> Jon Barnard wrote:
>
>> When I view code in JavaScript, Java and JSP editors the code is
>> double spaced. When I view the code in another text editor like
>> TextPad it is still single spaced. The really wierd thing is when I
>> save the file it is still single speced in TextPad. Can I turn this
>> off?
>
>
> You don't say what your platform is, but it certainly sounds like
> you're editing a file with different line terminators than your
> platform uses as a default. Maybe Eclipse thinks it's a binary file
> rather than a text file?

Eclipse text editors can handle files with mixed line delimiters where
"LF", "CF" and "CR LF" are valid line delimiters. Now, if your files
have "LF CR" that would explain why you see doubled line spacing.

> Alternately, you could set -Dline.separator when you run Eclipse - but
> you shouldn't need to do that.

This is only used when creating new files and has no effect at all when
viewing files.

Dani

> Look at the file in a hex editor and see what you've got.
>
> Andrew Jr.
>
> ============================================================ ==========
> IBM Phoenix Labs (OTI)
> 2929 North Central Avenue
> Phoenix, Arizona, USA 85012
Previous Topic:Show dialog box during startup
Next Topic:Profiling weblogic using TPTP
Goto Forum:
  


Current Time: Thu Apr 25 04:26:09 GMT 2024

Powered by FUDForum. Page generated in 0.08300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top