1NEDIT(1) NEdit documentation NEDIT(1)
2
3
4
6 NEdit - Text Editor
7
9 nedit [-read] [-create] [-line n ⎪ +n] [-server]
10 [-do command] [-tags file] [-tabs n]
11 [-wrap] [-nowrap] [-autowrap]
12 [-autoindent] [-noautoindent]
13 [-autosave] [-noautosave]
14 [-lm languagemode] [-rows n] [-columns n]
15 [-font font]
16 [-geometry⎪-g geometry] [-iconic] [-noiconic]
17 [-display [host]:server[.screen]]
18 [-xrm resourcestring]
19 [-svrname name] [-import file]
20 [-background⎪-bg color] [-foreground⎪-fg color]
21 [-tabbed] [-untabbed] [-group]
22 [-V⎪-version] [--] [file...]
23
25 NEdit is a standard GUI (Graphical User Interface) style text editor
26 for programs and plain-text files. It provides mouse based editing and
27 a streamlined editing style, based on popular Macintosh and MS Windows
28 editors, for users of X workstations and X terminals.
29
31 -read
32 Open the file read-only regardless of the actual file protection.
33
34 -create
35 Don't warn about file creation when a file doesn't exist.
36
37 -line n, +n
38 Go to line number n.
39
40 -server
41 Designate this session as an NEdit server, for processing commands
42 from the nc(1) program. nc(1) can be used to interface NEdit to
43 code development environments, mailers, etc., or just as a quick
44 way to open files from the shell command line without starting a
45 new NEdit session.
46
47 -do command
48 Execute an NEdit macro or action on the file following the -do
49 argument on the command line. -do is particularly useful from the
50 nc(1) program, where `nc -do' can remotely execute commands in an
51 nedit -server session.
52
53 -tags file
54 Load a file of directions for finding definitions of program sub‐
55 routines and data objects. The file must be of the format generated
56 by Exuberant Ctags, or the standard Unix ctags(1) command.
57
58 -tabs n
59 Set tab stops every n characters.
60
61 -wrap, -nowrap
62 Wrap long lines at the right edge of the window rather than contin‐
63 uing them past it. (Continuous Wrap mode)
64
65 -autowrap, -noautowrap
66 Wrap long lines when the cursor reaches the right edge of the win‐
67 dow by inserting newlines at word boundaries. (Auto Newline Wrap
68 mode)
69
70 -autoindent, -noautoindent
71 Maintain a running indent.
72
73 -autosave, -noautosave
74 Maintain a backup copy of the file being edited under the name
75 ~filename (on Unix) or _filename (on VMS).
76
77 -lm languagemode
78 Initial language mode used for editing succeeding files.
79
80 -rows n
81 Default height in characters for an editing window.
82
83 -columns n
84 Default width in characters for an editing window.
85
86 -font font, -fn font
87 Font for text being edited. Font for menus and dialogs can be set
88 with -xrm "*fontList:font".
89
90 -geometry geometry, -g geometry
91 The initial size and/or location of editor windows. The argument
92 geometry has the form:
93
94 [<width>x<height>][+⎪-][<xoffset>[+⎪-]<yoffset>]
95
96 where C`<width>' and "<height>" are the desired width and height of
97 the window, and <xoffset> and C`<yoffset>' are the distance from
98 the edge of the screen to the window, + for top or left, - for bot‐
99 tom or right. -geometry can be specified for individual files on
100 the command line.
101
102 -iconic, -noiconic
103 Initial window state for succeeding files.
104
105 -display [host]:server[.screen]
106 The name of the X server to use. host specifies the machine, server
107 specifies the display server number, and screen specifies the
108 screen number. host or screen can be omitted and default to the
109 local machine, and screen 0.
110
111 -background color, -bg color
112 Background color. The background color for text can be set sepa‐
113 rately with -xrm "nedit*text.background: color".
114
115 -foreground color, -fg color
116 Foreground color. The foreground color for text can be set sepa‐
117 rately with -xrm "nedit*text.foreground: color".
118
119 -xrm resourcestring
120 Set the value of an X resource to override a default value.
121
122 -svrname name
123 When starting nedit in server mode, name the server, such that it
124 responds to requests only when nc(1) is given a corresponding -svr‐
125 name argument. By naming servers, you can run several simultane‐
126 ously, and direct files and commands specifically to any one. Spec‐
127 ifying a non-empty name automatically designates this session as an
128 NEdit server, as though -server were specified.
129
130 -import file
131 Loads an additional preferences file on top of the existing
132 defaults saved in your .nedit file. To incorporate macros, lan‐
133 guage modes, and highlight patterns and styles written by other
134 users, run nedit with -import <file>, then re-save your .nedit file
135 with Preferences->Save Defaults.
136
137 -tabbed
138 Open all subsequent files in new tabs. Resets -group option.
139
140 -untabbed
141 Open all subsequent files in new windows. Resets -group option.
142
143 -group
144 Open all subsequent files as tabs in a new window.
145
146 -V, -version
147 Prints version and build information, to be mentioned when report‐
148 ing bugs and problems.
149
150 -- Treats all subsequent arguments as file names, even if they start
151 with a dash. This is so NEdit can access files that begin with the
152 dash character.
153
155 DISPLAY
156 NEdit requires an X-based workstation or X-Terminal. If you have
157 used telnet or rlogin to access the host Unix system, set the Unix
158 environment variable for your display:
159
160 csh-type shells:
161
162 % setenv DISPLAY devicename:0
163
164 sh-type shells:
165
166 % DISPLAY=devicename:0 && export DISPLAY
167
168 NEDIT_HOME
169 This environment variable can be set to the name of a directory.
170 This directory will then be used instead of `$HOME/.nedit' as the
171 base directory for NEdit's special files (see section FILES,
172 below).
173
174 This variable is new to NEdit 5.4.
175
177 From version 5.4 on, NEdit creates a directory in which NEdit's special
178 files reside. This directory is named '.nedit' by default.
179
180 nedit.rc
181 This is an X resource file which contains most user settings for
182 NEdit. It is read at startup and written by selecting the item
183 'Save Defaults...' in the Preferences menu. Do not edit this file
184 by hand, all settings can be reached via the 'Default Settings'
185 menu.
186
187 nedit.history
188 The list of recently opened files. Do not edit this file by hand.
189
190 autoload.nm
191 A file that can contain a number of NEdit Macro Language statements
192 and subroutine definitions. The statements will be executed when an
193 NEdit server starts, the subroutines will be loaded for later ref‐
194 erence. This file will not be created or modified by NEdit (unless
195 you load it and edit it of course).
196
197 Note that NEdit still supports the older names for these files, which
198 were used by version 5.3 and below. These legacy file names are
199 `$HOME/.nedit', `$HOME/.neditdb' and `$HOME/.neditmacro', respectively.
200 This legacy naming scheme will be used if NEdit detects that
201 `$HOME/.nedit' is a regular file.
202
203 See also the entry for NEDIT_HOME under ENVIRONMENT, above.
204
206 For more information see NEdit's online help, or nedit.doc in the NEdit
207 distribution kit.
208
209 NEdit sources, executables, additional documentation, and contributed
210 software are available from the NEdit web site at http://nedit.org.
211
213 nc(1), X(1), mwm(1), ctags(1), etags(1)
214
216 NEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad,
217 Jim Clark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max
218 Vohlken, Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve
219 LoBasso, Alexander Mai, Scott Tringali, Thorsten Haude, Steve Haehn,
220 Andrew Hood, Nathaniel Gray, and TK Soh.
221
222 The regular expression matching routines used in NEdit are adapted
223 (with permission) from original code written by Henry Spencer at the
224 University of Toronto.
225
226 Syntax highlighting patterns and smart indent macros were contributed
227 by: Simon T. MacDonald, Maurice Leysens, Matt Majka, Alfred Smeenk,
228 Alain Fargues, Christopher Conrad, Scott Markinson, Konrad Bernloehr,
229 Ivan Herman, Patrice Venant, Christian Denat, Philippe Couton, Max
230 Vohlken, Markus Schwarzenberg, Himanshu Gohel, Steven C. Kapp, Michael
231 Turomsha, John Fieber, Chris Ross, Nathaniel Gray, Joachim Lous, Mike
232 Duigou, Seak Teng-Fong, Joor Loohuis, Mark Jones, and Niek van den
233 Berg.
234
236 This program is free software; you can redistribute it and/or modify it
237 under the terms of the GNU General Public License as published by the
238 Free Software Foundation; either version 2 of the License, or (at your
239 option) any later version.
240
241 In addition, as a special exception to the GNU GPL, the copyright hold‐
242 ers give permission to link the code of this program with the Motif and
243 Open Motif libraries (or with modified versions of these that use the
244 same license), and distribute linked combinations including the two.
245 You must obey the GNU General Public License in all respects for all of
246 the code used other than linking with Motif/Open Motif. If you modify
247 this file, you may extend this exception to your version of the file,
248 but you are not obligated to do so. If you do not wish to do so, delete
249 this exception statement from your version.
250
251 This program is distributed in the hope that it will be useful, but
252 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
253 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
254 Public License in the Help section "Distribution Policy" for more
255 details.
256
257
258
259NEdit 5.5 2004-07-21 NEDIT(1)