1. NEdit Command Line
    1. #ifndef VMS
    2. #else

NEdit Command Line

#ifndef VMS

nedit [-read] [-create] [-line n | +n] [-server]
    [-do command] [-tags file] [-tabs n] [-wrap]
    [-nowrap] [-autoindent] [-noautoindent] [-autosave]
    [-noautosave] [-rows n] [-columns n] [-font font]
    [-geometry geometry] [-display [host]:server[.screen]
    [-xrm resourcestring] [-svrname name] [-import file]
    [file...]
-read
Open the file Read Only regardless of the actual file protection.
-create
Don't warn about file creation when a file doesn't exist.
-line n (or +n)
Go to line number n
-server
Designate this session as an NEdit server, for processing commands from the nc program. nc can be used to interface NEdit to code development environments, mailers, etc., or just as a quick way to open files from the shell command line without starting a new NEdit session.
-do command
Execute an NEdit macro or action. On each file following the -do argument on the command line. -do is particularly useful from the nc program, where nc -do can remotely execute commands in an nedit -server session.
-tags file
Load a file of directions for finding definitions of program subroutines and data objects. The file must be of the format gen- erated by the Unix ctags command.
-tabs n
Set tab stops every n characters.
-wrap, -nowrap
Wrap long lines at the right edge of the window rather than continuing them past it. (Continuous Wrap mode)
-autowrap, -noautowrap
Wrap long lines when the cursor reaches the right edge of the window by inserting newlines at word boundaries. (Auto Newline Wrap mode)
-autoindent, noautoindent
Maintain a running indent.
-autosave, -noautosave
Maintain a backup copy of the file being edited under the name ~filename (on Unix) or _filename (on VMS).
-rows n
Default height in characters for an editing window.
-columns n
Default width in characters for an editing window.
-font font (or -fn font)
Font for text being edited (Font for menus and dialogs can be set with -xrm "*fontList:font").
-display [host]:server[.screen]
The name of the X server to use. host specifies the machine, server specifies the display server number, and screen specifies the screen number. host or screen can be omitted and default to the local machine, and screen 0.
-geometry geometry (or -g geometry)
The initial size and/or location of editor windows. The argument geometry has the form:

[<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]

where <width> and <height> are the desired width and height of the window, and <xoffset> and <yoffset> are the distance from the edge of the screen to the window, + for top or left, - for bottom or right.
-background color (or -bg color)
Background color. (background color for text can be set separately with -xrm "nedit*text:background color").
-foreground color (or -fg color)
Foreground color. (foreground color for text can be set separately with -xrm "nedit*text:foreground color").
-xrm resourcestring
Set the value of an X resource to override a default value (see Customizing NEdit).
-svrname name
When starting nedit in server mode, name the server, such that it responds to requests only when nc is given a corresponding -svrname argument. By naming servers, you can run several simultaneously, and direct files and commands specifically to any one.",
-import filename
loads an additional preferences file on top of the existing defaults saved in your .nedit file. To incorporate macros, language modes, and highlight patterns and styles written by other users, run nedit with -import <file>, then re-save your .nedit file with Preferences -> Save Defaults.

#else

Command Format:

NEDIT [filespec[,...]]

The following qualifiers are accepted:

/read
Open the file Read Only regardless of the actual file protection.
/create
Don't warn about file creation when a file doesn't exist.
/line=n
Go to line #n
/server
Designate this session as an NEdit server for processing commands from the nc program. nc can be used to interface NEdit to code development environments, mailers, etc., or just as a quick way to open files from the shell command line without starting a new NEdit session.
/do=command
Execute an NEdit action routine. on each file following the /do argument on the command line. /do is particularly useful from the nc program, where nc /do can remotely execute commands in an nedit /server session.
/tags=file
Load a file of directions for finding definitions of program subroutines and data objects. The file must be of the format gen- erated by the Unix ctags command.
/wrap, /nowrap
Wrap long lines at the right edge of the window rather than continuing them past it. (Continuous Wrap mode)
/autowrap, /noautowrap
Wrap long lines when the cursor reaches the right edge of the window by inserting newlines at word boundaries. (Auto Newline Wrap mode)
/autoindent, /noautoindent
Maintain a running indent.
/autosave, /noautosave
Maintain a backup copy of the file being edited under the name ~filename (on Unix) or _filename (on VMS).
/rows=n
Default width in characters for an editing window.
/columns=n
Default height in characters for an editing window.
/font=font (or /fn=font)
Font for text being edited (Font for menus and dialogs can be set with -xrm "*fontList:font").
/display [host]:server[.screen]
The name of the X server to use. host specifies the machine, server specifies the display server number, and screen specifies the screen number. host or screen can be omitted and default to the local machine, and screen 0.
/geometry=geometry (or /g=geometry)
The initial size and/or location of editor windows. The argument geometry has the form:

[<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]

where <width> and <height> are the desired width and height of the window, and <xoffset> and <yoffset> are the distance from the edge of the screen to the window, + for top or left, - for bottom or right.
/background=color (or /bg=color)
Background color. (background color for text can be set separately with /xrm "nedit*text:background color").
/foreground=color (or /fg=color)
Foreground color. (foreground color for text can be set separately with -xrm "nedit*text:foreground color").
/xrm=resourcestring
Set the value of an X resource to override a default value (see Customizing NEdit).
/svrname=name
When starting nedit in server mode, name the server, such that it responds to requests only when nc is given a correspoding -svrname argument. By naming servers, you can run several simultaneously, and direct files and commands specifically to any one.
/import=filename
loads an additional preferences file on top of the existing defaults saved in your .nedit file. To incorporate macros, language modes, and highlight patterns and styles written by other users, run nedit with /import=<file>, then re-save your .nedit file with Preferences -> Save Defaults.

Unix-style command lines (but not file names) are also acceptable:

    nedit -rows 20 -wrap file1.c file2.c

is equivalent to:

    nedit /rows=20/wrap file1.c, file2.c",

#endif /*VMS*/


Send questions and comments to: nedit_support@fnal.gov.