avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Re: Iotn13.h


From: E. Weddington
Subject: Re: [avr-libc-dev] Re: Iotn13.h
Date: Fri, 21 May 2004 14:18:28 -0600

On 21 May 2004 at 16:10, Bruce Graham wrote:

> All,
> 
> I'm using the programmers notepad 2 which came with the WinAVR distribution.
> 
> (a) What precisely is the difference between unix line endings and windows 
> line
> endings? (b) How can I get programmers notepad 2 to observe the correct
> convention?
> 
> Bruce
> 

Unix line endings is a Line Feed character (ASCII code 10). Windows line 
endings consist of a Carriage Return character (ASCII code 13) followed by a 
Line Feed character (ASCII 10). For completeness, Mac line endings are a single 
Carriage Return character (ASCII 13).

You're in luck, PN can automatically detect which line endings are used in a 
file and properly display the text file in the editor (I do it all the time). 
If you want to change the line endings, go to Tools > Line Endings and you'll 
get a menu. It's pretty painless and self-explanatory. If you actually want to 
see the line endings (which is pretty instructive) go to View > Line End 
Markers (the menu item is a toggle).

As an aside, if you're ever viewing Makefiles and you want to make sure that 
you have Tabs in the right place go to View > Mark Whitespace. You can then 
visually see what is a space and what's a tab.

HTH
Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]