473,466 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

"\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 28021
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
2
by: steve | last post by:
Hi, I need to do conditional script "include", but like to pull the code from db instead of a file. How do I do that? Reason: I like to implement some complex regex logic, and make it table...
8
by: Spartanicus | last post by:
What is the correct notation for the "degree" symbol as used for angular measure? -- Spartanicus
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
1
by: Ulrich Wisser | last post by:
Hi, what does that line from my logfile mean? Adding missing FROM-clause entry for table "customer" Would pg change my SQL queries on the fly? TIA
8
by: Ulysse | last post by:
Hello, I need to clean the string like this : string = """ bonne mentalit&eacute; mec!:) \n <br>bon pour info moi je suis un serial posteur arceleur dictateur ^^* \n ...
2
by: Angus | last post by:
I am trying to change the selection in Javascript - but this HTML element is not a standard option control. On the web page it looks like a dropdown list - and you click on the right hand down...
1
by: manchin2 | last post by:
Hi, Can anybody please provide the information about "&quot" and its use, if possible please provide an example. ...
4
by: thaytu888888 | last post by:
Here is my codes in aspx page: <td colspan="2" class="main_menu" runat="server" onclick='toggleDisplay(<%#Eval("description")%>);'><%#Eval("description")%></td> Here is in "View source": ...
25
by: Peng Yu | last post by:
Hi, It is possible to change the length of "\t" to a number other than 8. std::cout << "\t"; Thanks, Peng
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.