473,383 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

"\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 28018
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.