Page 1 of 1

Scripts plugin: Is there a script that removes line numbers?

Posted: Mon Jun 20, 2011 10:21 pm
by djray
Hi,

As always, I'm loving AkelPad!

I'm just wondering if anyone has written a custom script for the Scripts plugin that removes trailing line numbers from copy and pasted code?

Cheers!

Posted: Tue Jun 21, 2011 9:23 am
by Instructor
djray
Example?

Posted: Tue Jun 21, 2011 9:42 am
by Infocatcher
djray
Something like

Code: Select all

AkelPad.ReplaceSel(
	AkelPad.GetSelText()
		.replace(/^\d+[ \t]/mg, "")
);
?

P.S. Example: https://developer.mozilla.org/en/Code_s ... le_windows (JavaScript should be enabled).

Posted: Tue Jun 21, 2011 2:43 pm
by Fr0sT
Also consider using column selection (Alt+arrows/mouse)

Posted: Sun Jul 31, 2011 7:36 pm
by djray
Fr0sT wrote:Also consider using column selection (Alt+arrows/mouse)
Neato! So simple, yet so useful!
Never knew about this function in Akelpad before ;)

Thanks Fr0sT!