📄 nedit.pod
字号:
# $Id: nedit.pod,v 1.1.2.1 2003/10/14 10:54:24 edg Exp $=pod=head1 NAMENEdit - Text Editor=head1 SYNOPSYSnedit [B<-read>] [B<-create>] [B<-line> I<n> | B<+>I<n>] [B<-server>] [B<-do> I<command>] [B<-tags> I<file>] [B<-tabs> I<n>] [B<-wrap>] [B<-nowrap>] [B<-autowrap>] [B<-autoindent>] [B<-noautoindent>] [B<-autosave>] [B<-noautosave>] [B<-lm> I<languagemode>] [B<-rows> n] [B<-columns> I<n>] [B<-font> I<font>] [B<-geometry>|B<-g> I<geometry>] [B<-iconic>] [B<-noiconic>] [B<-display> I<[host]:server[.screen]>] [B<-xrm> I<resourcestring>] [B<-svrname> I<name>] [B<-import> I<file>] [B<-background>|B<-bg> I<color>] [B<-foreground>|B<-fg> I<color>] [B<-V|-version>] [B<-->] [file...]=head1 DESCRIPTIONNEdit is a standard GUI (Graphical User Interface) style text editor forprograms and plain-text files. It provides mouse based editing and astreamlined editing style, based on popular Macintosh and MS Windows editors,for users of X workstations and X terminals.=head1 OPTIONS=over =item B<-read> Open the file read-only regardless of the actual file protection.=item B<-create> Don't warn about file creation when a file doesn't exist.=item B<-line> I<n>, B<+>I<n> Go to line number I<n>.=item B<-server> Designate this session as an NEdit server, for processing commands from theL<nc(1)> program. L<nc(1)> can be used to interface NEdit to code developmentenvironments, mailers, etc., or just as a quick way to open files from theshell command line without starting a new NEdit session.=item B<-do> I<command> Execute an NEdit macro or action. On each file following the B<-do> argument onthe command line. B<-do> is particularly useful from the L<nc(1)> program, where`nc -do' can remotely execute commands in an nedit B<-server> session.=item B<-tags> I<file> Load a file of directions for finding definitions of program subroutines anddata objects. The file must be of the format generated by Exuberant Ctags, orthe standard Unix L<ctags(1)> command.=item B<-tabs> I<n> Set tab stops every I<n> characters.=item B<-wrap>, B<-nowrap> Wrap long lines at the right edge of the window rather than continuing thempast it. (Continuous Wrap mode)=item B<-autowrap>, B<-noautowrap> Wrap long lines when the cursor reaches the right edge of the window byinserting newlines at word boundaries. (Auto Newline Wrap mode)=item B<-autoindent>, B<-noautoindent> Maintain a running indent.=item B<-autosave>, B<-noautosave> Maintain a backup copy of the file being edited under the name I<~filename> (on Unix) or I<_filename> (on VMS).=item B<-lm> I<languagemode> Initial language mode used for editing succeeding files.=item B<-rows> I<n> Default height in characters for an editing window.=item B<-columns> I<n> Default width in characters for an editing window.=item B<-font> I<font>, B<-fn> I<font> Font for text being edited. Font for menus and dialogs can be set with B<-xrm>I<"*fontList:font">.=item B<-geometry> I<geometry>, B<-g> I<geometry> The initial size and/or location of editor windows. The argument geometry hasthe form: [<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]where C`<width>' and C<< <height> >> are the desired width andheight of the window, and <xoffset> and C`<yoffset>' are thedistance from the edge of the screen to the window, + for top or left, - forbottom or right. B<-geometry> can be specified for individual files on thecommand line.=item B<-iconic>, B<-noiconic> Initial window state for succeeding files.=item B<-display> I<[host]:server[.screen]> The name of the X server to use. I<host> specifies the machine, I<server>specifies the display server number, and I<screen> specifies the screen number.I<host> or I<screen> can be omitted and default to the local machine, andscreen 0.=item B<-background> I<color>, B<-bg> I<color> Background color. The background color for text can be set separately withB<-xrm> I<"nedit*text.background: color">.=item B<-foreground> I<color>, B<-fg> I<color> Foreground color. The foreground color for text can be set separately withB<-xrm> I<"nedit*text.foreground: color">.=item B<-xrm> I<resourcestring> Set the value of an X resource to override a default value.=item B<-svrname> I<name> When starting nedit in server mode, name the server, such that it responds torequests only when L<nc(1)> is given a corresponding B<-svrname> argument. Bynaming servers, you can run several simultaneously, and direct files andcommands specifically to any one.=item B<-import> I<file> Loads an additional preferences file on top of the existing defaults saved inyour I<.nedit> file. To incorporate macros, language modes, and highlightpatterns and styles written by other users, run nedit with B<-import>I<<file>>, then re-save your I<.nedit> file withPreferences->Save Defaults.=item B<-V>, B<-version> Prints version and build information, to be mentioned when reporting bugs andproblems. =item B<-->Treats all subsequent arguments as file names, even if they start with a dash.This is so NEdit can access files that begin with the dash character. =back=head1 ENVIRONMENT=over=item DISPLAYNEdit requires an X-based workstation or X-Terminal. If you have used B<telnet>or B<rlogin> to access the host Unix system, set the Unix environment variable foryour display:csh-type shells: % setenv DISPLAY devicename:0sh-type shells: % DISPLAY=devicename:0 && export DISPLAY=item NEDIT_HOMEThis environment variable can be set to the name of adirectory. This directory will then be used instead of`$HOME/.nedit' as the base directory for NEdit's specialfiles (see section FILES, below).This variable is new to NEdit 5.4.=back=head1 FILESFrom version 5.4 on, NEdit creates a directory in which NEdit'sspecial files reside. This directory is named '.nedit' by default.=over=item I<nedit.rc>This is an X resource file which contains most user settings forNEdit. It is read at startup and written by selecting the item'Save Defaults...' in the Preferences menu. Do not edit thisfile by hand, all settings can be reached via the 'DefaultSettings' menu.=item I<nedit.history>The list of recently opened files. Do not edit thisfile by hand.=item I<autoload.nm >A file that can contain a number of NEdit Macro Languagestatements and subroutine definitions. The statements will beexecuted when an NEdit server starts, the subroutines will beloaded for later reference.This file will not be created or modified by NEdit (unlessyou load it and edit it of course).=back Note that NEdit still supports the older names for these files,which were used by version 5.3 and below. These legacy file namesare `$HOME/.nedit', `$HOME/.neditdb' and `$HOME/.neditmacro',respectively. This legacy naming scheme will be used if NEditdetects that `$HOME/.nedit' is a regular file.See also the entry for NEDIT_HOME under ENVIRONMENT, above.=head1 NOTESFor more information see NEdit's online help, or nedit.doc in the NEditdistribution kit.NEdit sources, executables, additional documentation, and contributed softwareare available from the NEdit web site at http://nedit.org.=head1 SEE ALSOnc(1), X(1), mwm(1), ctags(1), etags(1)=head1 AUTHORSNEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad, JimClark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max Vohlken,Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve LoBasso, AlexanderMai, Scott Tringali, Thorsten Haude, Steve Haehn, Andrew Hood, and Nathaniel Gray.The regular expression matching routines used in NEdit are adapted (withpermission) from original code written by Henry Spencer at the University ofToronto.Syntax highlighting patterns and smart indent macros were contributed by: SimonT. MacDonald, Maurice Leysens, Matt Majka, Alfred Smeenk, Alain Fargues,Christopher Conrad, Scott Markinson, Konrad Bernloehr, Ivan Herman, PatriceVenant, Christian Denat, Philippe Couton, Max Vohlken, Markus Schwarzenberg,Himanshu Gohel, Steven C. Kapp, Michael Turomsha, John Fieber, Chris Ross,Nathaniel Gray, Joachim Lous, Mike Duigou, Seak Teng-Fong, Joor Loohuis,Mark Jones, and Niek van den Berg.=head1 COPYRIGHTThis program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License in the Help section"Distribution Policy" for more details. =cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -