How do replace with return character in Word Pad

  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Is there a way to replace a character in Word Pad with a return character? For example, the line:

I like to have a return here. And so this will become the second line.

I want to replace the characters . with the return character so it will look like this:

I like to have a return here.
And so this will become the second line.


Again, I want the return character to work in Word Pad.

Any help to accomplish this is greatly appreciated!

ljCharlie
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

ljcharlie

I read that 5 times and can't for the life of me figure out what you are saying. Are you trying to write code for a web page in Wordpad? I use Notepad and Wordpad frequently to write web pages.

If so, in HTML -- the line break is always <br> unless you are writing in xhtml in which case it is <br />

If that's not what you were after -- could you be slightly more specific about what you want to do?
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Thank you for taking the time to help me out. Actually, I'm not writing any webpage code. All I'm trying to do is replacing some characters with a return character.

I receive a file that need to be replaced with a return character so it's not wraped in one chunk of words. I need it to be in sentense and paragraphs.

Thanks!

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Gottcha (I think)
Just position your cursor where you want the line break and hit "Enter"
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Yes, that is always a possibility but the problem is there are thousands of returns that I need to "hit" the return key and I don't want to do that. So I think there must be a hidden return key in Word Pad or Notepad to make this thing easier.

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Nope

They are simple text editors -- complain to the person who sent you the file -- but I think you'll need to do it by hand in Wordpad.

You might try pulling the file up in Word or an HTML editor and do a "find and replace" -- but in Wordpad, I never found any other way to do it other than the way I suggested.
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Well, I thought there is a way. I'll keep looking for it.

Many thanks for your time and effort. I'm greatly appreciated!

ljCharlie
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

in XP's version of Wordpad, go to View, Options. You can set all the
wrap settings there.

I imagine it's similar in other versions.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Hmmm...if you don't already have it...download HTML-kit. It's free.

Open the file in HTML-kit -- then run HTML Tidy (The F9 key)

That should quickly do line breaks on the text -- then just copy it into wordpad and save it. It's a shot in the dark but it may work. Here's the link to HTML-kit

http://www.chami.com/html-kit/

(When you try to open the file -- you may have to change it to "all files" -- but if I remember correctly it will pull up text files)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well -- dang it UNFLUX -- I've been playing with Wordpad all these years and dunce that I am never looked there.

Crap -- that would have saved me some hours trying to do the same thing ljCharlie is doing -- A BIG thanks on that one --

*kicks self, *kicks self, *kicks self...
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

hahahaha :lol:

don't kick yourslef too hard. :P

well, i know in Notepad it has the Word Wrap setting, so i figured
Wordpad would as well. ;)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Off topic -- you've been losing a few games or lotteries -- haven't you UNFLUX -- that participation thing you got there is not in proportion to your posts! *lol (I can tell you how to get them back! -- of course you have to have access to the database! *winks)
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Yes, I turned the wrap option off.

Somehow it still wasn't working right. I did replace all the characters that needed to be replaced with a <br> but still is not working. Some parts of the file are still not working right.

Now here's the bigger picture of the problem I'm facing.

I receive this plain text email that contains a bunch of data. I copy those data into a Word Pad and automatically, as it used to work before, give me a formated data that I can easily impor that file into MS Excel. Some how, it's not working this time. I'm not sure if it has to do with settings in Outlook 2002 or the Word Pad that is not giving me that format I used to get.

Which brings me to the initial question, how do I replace with a retun character. If I can figure out how this problem occure, I don't have to replace with a return character at all.

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Try "Rich text" tab - wrap to Window

I think based on UNFLUXES' post it may depend on the format they sent it to you in.
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Not working either.

ljCharlie
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Is there a free text program that I use to paste the data from Outlook into? I want to see if it does the same thing. Right now only have Notepad, WordPad, and MS Word 2002. However Word 2002 doesn't support sentenses that have a very long width, unless I'm not aware off.

ljCharlie
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

What about MS Word? Is there a way I can put a return character in MS Word? And can I display the texts without limit on the width in MS Word?

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Try what I suggested earlier with HTML-kit

Understood the PM stuff -- but the HTML tidy cleans up the wrap thing and you may be able to c&p it into Wordpad or Word or whatever and get to where you want to be.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

The only other thing I can think of -- and I seriously doubt that it would work or help -- but the visual basic code for a line break is vbCrLf&_

I have no expectation that that is going to work for you, but if you find a program like Word where you can do a find and replace for periods and replace it with the VB code *shrug -- I don't know what will happen -- I'm just throwing out suggestions.

Good luck -- I'm totally out of ideas.
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Again, thank you for the effort.

By the way, how do I use the HTML tidy? I want to clean the wrap texts and see if that help a bit.

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

F9 -- Afterwards -- copy output to editor... Then C & P
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Many thanks for the help. I got it working now. It's a little tedious but it works.

ljCharlie
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Good for you man --- I hope something I said somewhere helped.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

the only thing i can suggest is make sure you have the wrapping ON not
off. you want the setting to carriage it down.
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Thanks!

ljCharlie
  • RobDogg
  • Born
  • Born
  • RobDogg
  • Posts: 1

Post 3+ Months Ago

You may want to do this in Word. You can do a find and replace using ^l This will insert a line break.

- Rob
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

^| doesn't work in Word pad and note pad, correct? Unfortunately I was unable to get MS Word to not wrap the texts so that's why I use Word Pad or note pad.

ljCharlie
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

You could try doing a replace - put one space in the top box and two spaces in the bottom box... :roll:
  • dadda_mac
  • Born
  • Born
  • dadda_mac
  • Posts: 1
  • Loc: Detroit

Post 3+ Months Ago

I used to do this kind of stuff all the time. A search and replace like the one you're describing can be done easily using any version of WordPerfect.

Find: .
Replace with: .[Hrt]

[Hrt] is the WordPerfect character code for carriage returns.
  • Truce
  • Guru
  • Guru
  • Truce
  • Posts: 1477
  • Loc: Washington DC

Post 3+ Months Ago

This was an old topic. Where did you dig it up??? lol. That is very useful though! One up Corel, one down MS!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 34 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.