Deleting blank lines within a selection (using a macro) [SEC=UNCLASSIFIED]

Mike Macaskill M.Macaskill at bom.gov.au
Fri Jan 30 00:27:27 CET 2009


FYI, I created the macro using:

Learn Keystrokes (Alt+K)
Select text
Replace using the regex '^[ |\t]*\n' 
Finish Learn (Alt+K)
Preferences->Default Settings->Customise Menus->Macro menu (I don't know
the hot key for this)
Paste learn/Replay Macro
Then you can can give the macro a menu entry in the text box and
save it by hitting the OK button
Voila!!
Hope this helps!!


Mike Macaskill
NCC Computing Support
Tel 9669 4265 Fax 9669 4760
 
 

> -----Original Message-----
> From: discuss-bounces at nedit.org 
> [mailto:discuss-bounces at nedit.org] On Behalf Of Randy Kramer
> Sent: Friday, 30 January 2009 10:14 AM
> To: General NEdit discussion list
> Subject: Re: Deleting blank lines within a selection (using a 
> macro)[SEC=UNCLASSIFIED]
> 
> On Thursday 29 January 2009 05:47 pm, Mike Macaskill wrote:
> > replace_in_selection("^[ |\\t]*\\n", "", "regexNoCase")
> 
> Mike,
> 
> Perfect--thank you!
> 
> Randy Kramer
> -- 
> I didn't have time to write a short letter, so I created a video 
> instead.--with apologies to Cicero, et.al.
> -- 
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
> 


More information about the Discuss mailing list