⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preferences.html

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE> Customizing </TITLE></HEAD><BODY><A NAME="Preferences"></A><H2> Preferences </H2><P>The Preferences menu allows you to set options for both the current editingwindow, and default values for newly created windows and future NEditsessions.  Options in the Preferences menu itself (not in the DefaultSettings sub-menu) take effect immediately and refer to the current windowonly.  Options in the Default Settings sub-menu provide initial settings forfuture windows created using the New or Open commands; options affecting allwindows are also set here.Preferences set in the Default Settings sub-menu can be saved in a file thatis automatically read by NEdit at startup time, by selecting Save Defaults.</P><P><H3>Preferences Menu</H3></P><P><PRE><B>Default Settings</B></PRE>Menu of initial settings for future windows.  Generally the same as theoptions in the main part of the menu, but apply as defaults for futurewindows created during this NEdit session.  These settings can be saved usingthe Save Defaults command below, to be loaded automatically each time NEditis started.</P><P><PRE><B>Save Defaults</B></PRE>Save the default options as set under Default Settings for future NEdit sessions.</P><P><PRE><B>Statistics Line</B></PRE>Show the full file name, line number, and length of the file being edited.</P><P><PRE><B>Incremental Search Line</B></PRE>Keep the incremental search bar (Search -&#62; Find Incremental) permanentlydisplayed at the top of the window.</P><P><PRE><B>Show Line Numbers</B></PRE>Display line numbers to the right of the text.</P><P><PRE><B>Language Mode</B></PRE>Tells NEdit what language (if any) to assume, for selecting language-specificfeatures such as highlight patterns and smart indent macros, and settinglanguage specific preferences like word delimiters, tab emulation, andauto-indent.  See Features for Programming -&#62; <A HREF="programmer.html#Programming_with_NEdit">Programming with NEdit</A> formore information.</P><P><PRE><B>Auto Indent</B></PRE>Setting Auto Indent "on" maintains a running indent (pressing the Return keywill line up the cursor with the indent level of the previous line).  Ifsmart indent macros are available for the current language mode, smart indentcan be selected and NEdit will attempt to guess proper language indentationfor each new line.  See Help -&#62; Features for Programming -&#62; Automatic Indentfor more information.</P><P><PRE><B>Wrap</B></PRE>Choose between two styles of automatic wrapping or none.  Auto Newline wrap,wraps text at word boundaries when the cursor reaches the right margin, byreplacing the space or tab at the last word boundary with a newlinecharacter.  Continuous Wrap wraps long lines which extend past the rightmargin. Continuous Wrap mode is typically used to produce files wherenewlines are omitted within paragraphs, to make text filling automatic (akind of poor-man's word processor).  Text of this style is common on Macs andPCs but is not necessarily supported very well under Unix (except in programswhich deal with e-mail, for which it is often the format of choice).</P><P><PRE><B>Wrap Margin</B></PRE>Set margin for Auto Newline Wrap, Continuous Wrap, and Fill Paragraph.  Linesmay, be wrapped at the right margin of the window, or the margin can be setat a specific column.</P><P><PRE><B>Tabs</B></PRE>Set the tab distance (number of characters between tab stops) for tabcharacters, and control tab emulation and use of tab characters in paddingand emulated tabs.</P><P><PRE><B>Text Font...</B></PRE>Change the font(s) used to display text (fonts for menus and dialogs must beset using X resources for the text area of the window). See below for moreinformation.</P><P><PRE><B>Colors...</B></PRE></P><P>Change the colors used to display text.  The "Matching (..)" fields changethe colors that matching parens, brackets and braces are flashed when the"Show Matching (..)" option is enabled.  Note that the foreground colors forplain text, selected text, and matching paren flashing only apply when syntaxhighlighting is disabled.  When syntax highlighting is enabled, text (eventext that appears plain) will always be colored according to itshighlighting style. (For information on changing syntax highlighting stylesand matching patterns use see  Help -&#62; Features for Programming -&#62;<A HREF="syntax.html#Syntax_Highlighting">Syntax Highlighting</A>.)</P><P><PRE><B>Highlight Syntax</B></PRE>If NEdit recognizes the language being edited, and highlighting patterns areavailable for that language, use fonts and colors to enhance viewing of thefile.  (See Help -&#62; Features for Programming -&#62; Syntax Highlighting for moreinformation.</P><P><PRE><B>Make Backup Copy</B></PRE>On Save, write a backup copy of the file as it existed before the Savecommand with the extension .bck (Unix only).</P><P><PRE><B>Incremental Backup</B></PRE>Periodically make a backup copy of the file being edited under the name`~filename` on Unix or `_filename` on VMS (see <A HREF="recovery.html#Crash_Recovery">Crash Recovery</A>).</P><P><PRE><B>Show Matching (..)</B></PRE>Momentarily highlight matching parenthesis, brackets, and braces, or therange between them, when one of these characters is typed, or when theinsertion cursor is positioned after it. Delimiter only highlights thematching delimiter, while Range highlights the whole range of text betweenthe matching delimiters.</P><P>Optionally, the matching can make use of syntax information if syntaxhighlighting is enabled. Alternatively, the matching is purely characterbased. In general, syntax based matching results in fewer false matches.</P><P><PRE><B>Overtype</B></PRE>In overtype mode, new characters entered replace the characters in front ofthe insertion cursor, rather than being inserted before them.</P><P><PRE><B>Read Only</B></PRE>Lock the file against accidental modification.  This temporarily prevents thefile from being modified in this NEdit session. Note that this is differentfrom setting the file protection.</P><P><H3>Preferences -> Default Settings Menu</H3></P><P>Options in the Preferences -&#62; Default Settings menu have the same meaning asthose in the top-level Preferences menu, except that they apply to futureNEdit windows and future NEdit sessions if saved with the Save Defaultscommand.  Additional options which appear in this menu are:</P><P><PRE><B>Language Modes</B></PRE>Define language recognition information (for determining language mode fromfile name or content) and set language specific preferences.</P><P><PRE><B>Tag Collisions</B></PRE>How to react to multiple tags for the same name.  Tags are described in thesection: Features for Programmers -&#62; Finding Declarations (ctags).  In ShowAll mode, all matching tags are displayed in a dialog.  In Smart mode, if oneof the matching tags is in the current window, that tag is chosen, withoutdisplaying the dialog.</P><P><PRE><B>Customize Menus</B></PRE>Add/remove items from the Shell, Macro, and window background menus (seebelow).</P><P><PRE><B>Customize Window Title</B></PRE>Opens a dialog where the information to be displayed in the window's titlefield can be defined and tested. The dialog contains a Help button, providingfurther information about the options available.</P><P><PRE><B>Searching</B></PRE>Options for controlling the behavior of Find and Replace commands:</P><P><I>Verbose</I> - Presents search results in dialog form, asks before wrapping asearch back around the beginning (or end) of the file (unless Beep On Search Wrap is turned on).</P><P><I>Wrap Around</I> - Search and Replace operations wrap around the beginning (or end) of the file.</P><P><I>Beep On Search Wrap</I> - Beep when Search and Replace operations wrap around the beginning (or end) ofthe file (only if Wrap Around is turned on).</P><P><I>Keep Dialogs Up</I> - Don't pop down Replace and Find boxes after searching.</P><P><I>Default Search Style</I> - Initial setting for search type in Find and Replace dialogs.</P><P><I>Default Replace Scope</I> - [THIS OPTION IS ONLY PRESENT WHEN NEDIT WAS COMPILED WITH THE <PRE>   -DREPLACE_SCOPE FLAG TO SELECT AN ALTERNATIVE REPLACE DIALOG LAYOUT.]</PRE></P><P>Initial setting for the scope in the Replace/Find dialog, when a selectionexists. It can be either "In Window", "In Selection", or "Smart". "Smart"results in "In Window" if the size of the selection is smaller than 1 line,and to "In Selection" otherwise.</P><P><PRE><B>Syntax Highlighting</B></PRE>Program and configure enhanced text display for new or supported languages(See Features for Programming -&#62; <A HREF="syntax.html#Syntax_Highlighting">Syntax Highlighting</A>).</P><P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -