replace new line

G

Guest

At the advice of this community, I paste text from other programs into a text
file before putting it in FP. It gets rid of a bunch of bad code but
unfortunately inserts hundreds of line break characters. I would like to
replace those soft returns (line breaks) with a hard return. FP allows me to
insert regular expressions in the Find What: field (and inserts /n) but does
have regular expressions in the Replace with field. Does anyone know what
character I can use to insert a hard break?
I have tried /p and <br>
 
S

Steve Easton

Are you copying and pasting javascript??
Because \n is a new line / line continuation in javascript when
concatenating a string using multiple instances of a variable.
( that's one use anyway )

There's an example of it in the source for the page here
http://www.95isalive.com/test/

( just something I've been experimenting with )

A line break in html is either <br>
A paragraph is <p> which requires a closing </p>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

Steve Easton

Oops
A line break in html is <br>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top