Hello,

I'm 2 months new to PSPad and searched the forums but did not find a direct
answer for my question. I have figured out a work around but would like to know
if there is a better, more direct method.

It is easy to replace characters in a line with \n to create new lines.

Example:

_Porky Pig; Daffy Duck; Bugs Bunny; Elmer Fudd;_

I use CTRL-H > Find "; " > Replace with "\n" to get this:

[b]Porky Pig
Daffy Duck
Bugs Bunny
Elmer Fudd[/b]

(Interestingly the Info box says Searched expression "; " was replaced 10x)

However, if I want to go backwards I cannot find "\n" and simply replace with ";
".

Info box says Next occurrence of "\n" not found.

I've tried search / replace $ and hex codes without success but I discovered a
2-step work around.

Step 1: CTRL-H > Find "$" > Replace with ";" to get this:

[b]Porky Pig;
Daffy Duck;
Bugs Bunny;
Elmer Fudd;[/b]

Setp 2: Select all lines > Edit > Line Manipulation > Join Lines to get this:

_Porky Pig; Daffy Duck; Bugs Bunny; Elmer Fudd; _

I understand from forum messages I've seen that there are line manipulation
limitations but I have a feeling there is there an easier way and I just need
some direction from the experts.

Thanks in advance!

-- 
<http://forum.pspad.com/read.php?2,59876,59876>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem