NEDIT(1)
π NEDIT(1) π
okay so bestie, welcome to the NEdit page β that's the manual for NEdit, from the NEdit documentation set, and I promise it's gonna be a good time. NEdit is a text editor. A whole GUI one. Let's get into it. π¦
β¨ SYNOPSYS β¨
like, here's the whole vibe of how you invoke her:
nedit [-read] [-create] [-line n | +n] [-server]
[-do command] [-tags file] [-tabs n]
[-wrap] [-nowrap] [-autowrap]
[-autoindent] [-noautoindent]
[-autosave] [-noautosave]
[-lm languagemode] [-rows n] [-columns n]
[-font font]
[-geometry|-g geometry] [-iconic] [-noiconic]
[-display [host]:server[.screen]]
[-xrm resourcestring]
[-svrname name] [-import file]
[-background|-bg color] [-foreground|-fg color]
[-tabbed] [-untabbed] [-group]
[-V|-version] [-h|-help] [--] [file...]
πΈ DESCRIPTION πΈ
So. NEdit is a standard GUI (Graphical User Interface) style text editor for programs and plain-text files. It's giving mouse-based editing, it's giving streamlined editing style β the whole thing is modeled on those popular Macintosh and MS Windows editors, bestie β and it's made for people on X workstations and X terminals. Iconic behavior, honestly. π
π OPTIONS π
-readβ opens the file read-only, no matter what the actual file protection says. the file can't stop you, you simply choose peace. ποΈ-createβ don't warn about file creation when a file doesn't exist. she's chill like that.-line n,+nβ jumps straight to line number n. main character energy: you arrive exactly where you meant to.-serverβ designates this session as an NEdit server, so it can process commands coming from thenc(1)program.nc(1)is how you hook NEdit up to code development environments, mailers, etc., or honestly just as a quick way to open files from the shell command line without starting a whole new NEdit session. no new window, no drama. π-do commandβ executes an NEdit macro or action on the file that follows the-doargument on the command line.-dois especially useful from thenc(1)program, wherenc -docan remotely execute commands inside annedit -serversession. remote control, but make it text editing. π-tags fileβ loads a file of directions for finding definitions of program subroutines and data objects. that file has to be in the format generated by Exuberant Ctags, or by the standard Unixctags(1)command. no homemade formats, bestie.-tabs nβ sets tab stops every n characters.-wrap,-nowrapβ wraps long lines at the right edge of the window rather than letting them continue past it. this is Continuous Wrap mode. very demure, very contained. πΈ-autowrap,-noautowrapβ wraps long lines when the cursor reaches the right edge of the window, by inserting newlines at word boundaries. this is Auto Newline Wrap mode.-autoindent,-noautoindentβ maintains a running indent. yes queen, keep the structure.-autosave,-noautosaveβ maintains a backup copy of the file being edited, under the name~filenameon Unix, or_filenameon VMS. safety net era. π«Ά-lm languagemodeβ the initial language mode used for editing succeeding files.-rows nβ default height, in characters, for an editing window.-columns nβ default width, in characters, for an editing window.-font font,-fn fontβ font for the text being edited. the font for menus and dialogs can be set separately with-xrm "*fontList:font".-geometry geometry,-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. and yes, -geometry can be specified for individual files on the command line. per-file glow-up. β¨
-iconic,-noiconicβ initial window state for succeeding files.-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. defaults ate.-background color,-bg colorβ background color. the background color for text can be set separately with-xrm "nedit*text.background: color".-foreground color,-fg colorβ foreground color. the foreground color for text can be set separately with-xrm "nedit*text.foreground: color".-xrm resourcestringβ sets the value of an X resource, to override a default value.-svrname nameβ when startingneditin server mode, this names the server, so it responds to requests only whennc(1)is given a corresponding-svrnameargument. by naming servers you can run several simultaneously and direct files and commands specifically to any one of them. specifying a non-empty name automatically designates this session as an NEdit server, as though-serverwere specified. it's giving assigned seating. π-import fileβ loads an additional preferences file on top of the existing defaults saved in yournedit.rcfile. to incorporate macros, language modes, and highlight patterns and styles written by other users, runneditwith-import <file>, then re-save yournedit.rcfile withPreferences->Save Defaults. collab era. π€-tabbedβ open all subsequent files in new tabs. resets the-groupoption.-untabbedβ open all subsequent files in new windows. resets the-groupoption.-groupβ open all subsequent files as tabs in a new window.-V,-versionβ prints version and build information. mention this when reporting bugs and problems! the devs need the receipts. π§Ύ-h,-helpβ prints the command line help and then exits. bye bestie π--β 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. protecting the weird little filenames. π₯Ί
π ENVIRONMENT π
DISPLAY
NEdit requires an X-based workstation or X-Terminal. if you've used telnet or rlogin to access the host Unix system, set the Unix environment variable for your display:
csh-type shells:
% setenv DISPLAY devicename:0
sh-type shells:
% DISPLAY=devicename:0 && export DISPLAY
NEDIT_HOME
this environment variable can be set to the name of a directory. that directory will then be used instead of $HOME/.nedit as the base directory for NEdit's special files (peep the FILES section below, bestie).
this variable is new to NEdit 5.4.
π FILES π
from version 5.4 on, NEdit creates a directory where NEdit's special files live. this directory is named .nedit by default.
nedit.rcβ this is an X resource file containing most user settings for NEdit. it's read at startup and written by selecting the item'Save Defaults...'in the Preferences menu. do not edit this file by hand β all settings can be reached via the'Default Settings'menu. hands off, okay? πnedit.historyβ the list of recently opened files. do not edit this file by hand. i'm serious. πautoload.nmβ a file that can contain a number of NEdit Macro Language statements and subroutine definitions. the statements get executed when an NEdit server starts, and the subroutines get loaded for later reference. this file will not be created or modified by NEdit (unless you load it and edit it, of course β that one's on you π).
ngl, NEdit still supports the older names for these files, which were used by version 5.3 and below. those file names are$HOME/.nedit,$HOME/.neditdband$HOME/.neditmacro, respectively. the old naming scheme is used if NEdit detects that$HOME/.neditis a regular file andNEDIT_HOMEisn't set.
also see the entry for NEDIT_HOME under ENVIRONMENT, above. β¬οΈ
β NOTES β
for more info, see NEdit's online help, or nedit.doc in the NEdit distribution kit.
NEdit sources, executables, additional documentation, and contributed software are available from the NEdit web site at http://nedit.org. go visit her. π
π¦ SEE ALSO π¦
nc(1), X(1), mwm(1), ctags(1), etags(1)
π AUTHORS π
NEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad, Jim Clark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max Vohlken, Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve LoBasso, Alexander Mai, Scott Tringali, Thorsten Haude, Steve Haehn, Andrew Hood, Nathaniel Gray, and TK Soh. legends, all of them. π«Ά
the regular expression matching routines used in NEdit are adapted (with permission) from original code written by Henry Spencer at the University of Toronto. respect the regex elder.
syntax highlighting patterns and smart indent macros were contributed by: Simon T. MacDonald, Maurice Leysens, Matt Majka, Alfred Smeenk, Alain Fargues, Christopher Conrad, Scott Markinson, Konrad Bernloehr, Ivan Herman, Patrice Venant, 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. the glow-up squad β¨
π COPYRIGHT π
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
in addition, as a special exception to the GNU GPL, the copyright holders give permission to link the code of this program with the Motif and Open Motif libraries (or with modified versions of these that use the same license), and distribute linked combinations including the two. you must obey the GNU General Public License in all respects for all of the code used other than linking with Motif/Open Motif. if you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. if you do not wish to do so, delete this exception statement from your version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License in the Help section "Distribution Policy" for more details.
read that last part again, bestie β no warranty, no promises, no take-backs. π«Ά
and that's the whole page!! mwah π β NEdit 5.7, dated 2022-01-20, NEDIT(1), signing off. πβ¨
π¦ where this page comes from
- epel 9: nedit 5.7-12.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms