Actually I was used to this feature and needed it often and didn't know it's a
problem with *PSPad* ...
I can tell you how *NoteTab* does this: special chars are translated to
something innocent like
-> ^p
\n -> ^l
\t -> ^t
This way if you copy multiple lines, you get the translation in your s/r-box and
see how it looks like, you don't even need instructions.
aString
bString
cString
translates to (in Windows)
aString^PbString^PcString^P
Case doesn't matter, so you can write ^p instead of ^P.
Hence you can do whatever you want, for example replace a *new line* by a
*tab* followed by a *comma*:
^p => ^t,
Pretty simple, isn't it?
This way, there is no need for *A Multiline Search / Replace for PSPad* -
don't even know if that tool can replace *new lines* - my test shows no.
They even use the same syntax on file s/r.
Also, using *autocorrect* a lot, I miss their features and elegance. This
is, strictly speaking, another topic, but both are pretty much related.
They have keystrokes and caret placement (like *PSPad macro*) with very
simple means, and this is also not limited to *one line*.
*Simple Examples:*
^!Replace "^p" >> "^p^t"
^!Save
[i]Increase indentation of marked block and save;
you have several one character qualifiers for s/r like
case sensitivity, direction and so on[/i]
^!Replace "^p^t" >> "^p"
^!Save
*Reduce indentation of marked block*
^!Keyboard CTRL+A
^!Keyboard CTRL+C
^!Keyboard CTRL+N
^!Keyboard CTRL+V
*Guess what? CopyAllToNewWindow*
foreach($ar as $key => $val){
^&
}
[i]Multiline is no problem for autocorrect;
^& is the caret position
and will hold marked text, if any[/i]
There are some more elaborated means so that they call it a programming language
(*clip programming*). Most of it may be substituted by scripting in PSPad
(I did my first exercises), but this is limited to *hotkeys* or [i]menu
invocation[/i] which makes it cumbersome in my eyes.
I guess it should not be too much of an effort to enhance *autocorrect*
and/or *search/replace* in this way - my humble opinion.
--
<http://forum.pspad.com/read.php?2,43891,46082>
PSPad freeware editor http://www.pspad.com