469,311 Members | 2,447 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,311 developers. It's quick & easy.

"\n" does not break the line in Notepad

aa
I write to a text file, and when view the resulting file in Notepad, it
shows "\t" as tabs correctly, but "\n" does not break the line. Instad it
shows as a square.
In Dreamweaver it shows OK. How do I fix Notepad?

Jul 17 '05 #1
5 27586
aa wrote:
I write to a text file, and when view the resulting file in Notepad, it
shows "\t" as tabs correctly, but "\n" does not break the line. Instad it
shows as a square.
In Dreamweaver it shows OK. How do I fix Notepad?


Download a texteditor, like textpad: www.textpad.com

Notepad is not a texteditor. Don't ask me what it actually is, I don't know.

Regards,
Erwin Moller
Jul 17 '05 #2
*** aa wrote/escribió (Fri, 19 Nov 2004 15:02:47 -0000):
I write to a text file, and when view the resulting file in Notepad, it
shows "\t" as tabs correctly, but "\n" does not break the line. Instad it
shows as a square.
In Dreamweaver it shows OK. How do I fix Notepad?


Since it's you who creates the file and you are a Windows user, I'd
recommend that you use Windows carriage returns:

Unix: \n
MacOS: \r
Windows: \r\n
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Jul 17 '05 #3
aa wrote:
I write to a text file, and when view the resulting file in Notepad, it
shows "\t" as tabs correctly, but "\n" does not break the line. Instad it
shows as a square. How do I fix Notepad?
You don't fix Notepad, you fix your /text/ files.
Text files have a line end dependent on the OS on which they are on.
On Windows the line end is CRLF ("\r\n");
on Linux it is LF ("\n"); and
on Mac it is CR ("\r").

If you want to treat your /text/ files as binary data, Notepad isn't the
best program to edit them (as it isn't the best program to edit
executable files).

Some Windows programs In Dreamweaver it shows OK.

(apparently like Dreamweaver) treat binary files as /text/ files and
that causes a whole lot of mess when the files aren't /text/ files :-)

You already have a editor that works as you like (Dreamweaver). Just use
it instead of Notepad; or get another substitute for Notepad.
Googling for "Notepad replacement" will give you a lot of binary "text"
file editors.
--
Mail sent to my "From:" address is publicly readable at http://www.dodgeit.com/
== ** ## !! !! ## ** ==
TEXT-ONLY mail to the complete "Reply-To:" address ("My Name" <my@address>) may
bypass the spam filter. I will answer all pertinent mails from a valid address.
Jul 17 '05 #4
aa
Thanks, fixed
Jul 17 '05 #5
Open the file in Wordpad and save it. Windows needs \r\n to do a 'new
line'. WordPad adds them.

--

"aa" <aa@virgin.net> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
I write to a text file, and when view the resulting file in Notepad, it
shows "\t" as tabs correctly, but "\n" does not break the line. Instad it
shows as a square.
In Dreamweaver it shows OK. How do I fix Notepad?

Sep 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by steve | last post: by
2 posts views Thread by steve | last post: by
8 posts views Thread by Spartanicus | last post: by
8 posts views Thread by Ulysse | last post: by
2 posts views Thread by Angus | last post: by
1 post views Thread by manchin2 | last post: by
25 posts views Thread by Peng Yu | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.