Faster CR -> LF Macro?

Randy Kramer rhkramer at gmail.com
Wed Mar 19 19:08:07 CET 2008


On Wednesday 19 March 2008 01:48 pm, Aaron Hsu wrote:
> --On March 19, 2008 10:53:39 AM +0300 AVKuznetsov <kuzn at htsc.mephi.ru> 
> wrote:
> 
> > replace_all("\r", "\n")
> > replace("\r", "\n" [, direction] [, wrap])
> > replace_in_selection("\r", "\n")
> 
> Huh, I must have missed those functions. Where are they documented in
> the NEdit documentation?

I often have trouble finding them as well.  They are "Actions Representing 
Menu Commands" and are documented (in nedit 5.5) in what I guess is the 27th 
help screen:

NEdit Help: Action Routines (27)

<quote>
All of the editing capabilities of NEdit are represented as a special type of 
subroutine, called an action routine, which can be invoked from both macros 
and translation table entries (see "Key Binding" in the Customizing section 
of the Help menu). 

Actions Representing Menu Commands

    File Menu                 Search Menu
    -----------------------   -------------------------
    new()                     find()
    open()                   ...
...
</quote>

Randy Kramer


More information about the Discuss mailing list