Faster CR -> LF Macro?
Aaron Hsu
arcfide at mac.com
Wed Mar 19 07:44:58 CET 2008
Hello All,
Do any of you have a faster way of doing a CR->LF conversion?
Right now I am using a macro. I want to be able to do this in one shot
easily, because I do this a lot. Right now I have:
pos = search("\r", 0, "regex")
while (pos >= 0) {
replace_range(pos, $search_end, "\n")
pos = search("\r", 0, "regex")
}
This is a bit slow because it is running through a macro, so I was
thinking about making it a script, but I don't know if that would be
better or not. :-/ I mean, it's nice to have the macro going without
having to have an external program to run it through.
Just wondering.
--
Aaron Hsu <arcfide at sacrideo.us> | Jabber: arcfide at jabber.org
``Government is the great fiction through which everybody endeavors to
live at the expense of everybody else.'' - Frederic Bastiat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20080319/4cd9de1c/attachment.bin
More information about the Discuss
mailing list