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

📄 nedit.html

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</P><P>Under X and Motif, there are several levels of translation between keyboardkeys and the actions they perform in a program.  The "<A HREF="#Customizing_NEdit">Customizing NEdit</A>", and"<A HREF="#X_Resources">X Resources</A>" sections of the Help menu have more information on this subject. Because of all of this configurability, and since keyboards and standards forthe meaning of some keys vary from machine to machine, the mappings may bechanged from the defaults listed below.</P><P><H3>Modifier Keys (in general)</H3></P><P><PRE>    Ctrl   Extends the scope of the action that the key           would otherwise perform.  For example, Home           normally moves the insert cursor to the beginning           of a line. Ctrl+Home moves it to the beginning of           the file.  Backspace deletes one character, Ctrl+           Backspace deletes one word.</PRE></P><P><PRE>    Shift  Extends the selection to the cursor position. If           there's no selection, begins one between the old           and new cursor positions.</PRE></P><P><PRE>    Alt    When modifying a selection, makes the selection           rectangular.</PRE></P><P>(For the effects of modifier keys on mouse button presses, see the sectiontitled "<A HREF="#Using_the_Mouse">Using the Mouse</A>")</P><P><H3>All Keyboards</H3></P><P><PRE>    Escape        Cancels operation in progress: menu                  selection, drag, selection, etc.  Also                  equivalent to cancel button in dialogs.</PRE></P><P><PRE>    Backspace     Delete the character before the cursor</PRE></P><P><PRE>    Ctrl+BS       Delete the word before the cursor</PRE></P><P><PRE>    Arrows --</PRE></P><P><PRE>      Left        Move the cursor to the left one character</PRE></P><P><PRE>      Ctrl+Left   Move the cursor backward one word                  (Word delimiters are settable, see                  "<A HREF="#Customizing_NEdit">Customizing NEdit</A>", and "<A HREF="#X_Resources">X Resources</A>")</PRE></P><P><PRE>      Right       Move the cursor to the right one character</PRE></P><P><PRE>      Ctrl+Right  Move the cursor forward one word</PRE></P><P><PRE>      Up          Move the cursor up one line</PRE></P><P><PRE>      Ctrl+Up     Move the cursor up one paragraph.                  (Paragraphs are delimited by blank lines)</PRE></P><P><PRE>      Down        Move the cursor down one line.</PRE></P><P><PRE>      Ctrl+Down   Move the cursor down one paragraph.</PRE></P><P><PRE>    Ctrl+Return   Return with automatic indent, regardless                  of the setting of Auto Indent.</PRE></P><P><PRE>    Shift+Return  Return without automatic indent,                  regardless of the setting of Auto Indent.</PRE></P><P><PRE>    Ctrl+Tab      Insert an ASCII tab character, without                  processing emulated tabs.</PRE></P><P><PRE>    Alt+Ctrl+&#60;c&#62;  Insert the control-code equivalent of                  a key &#60;c&#62;</PRE></P><P><PRE>    Ctrl+/        Select everything (same as Select                  All menu item or ^A)</PRE></P><P><PRE>    Ctrl+\        Unselect</PRE></P><P><PRE>    Ctrl+U        Delete to start of line</PRE></P><P><H3>PC Standard Keyboard</H3></P><P><PRE>    Ctrl+Insert   Copy the primary selection to the                  clipboard (same as Copy menu item or ^C)                  for compatibility with Motif standard key                  binding    Shift+Ctrl+    Insert        Copy the primary selection to the cursor                  location.</PRE></P><P><PRE>    Delete        Delete the character before the cursor.                  (Can be configured to delete the character                  after the cursor, see "<A HREF="#Customizing_NEdit">Customizing NEdit</A>",                  and "<A HREF="#X_Resources">X Resources</A>")</PRE></P><P><PRE>    Ctrl+Delete   Delete to end of line.</PRE></P><P><PRE>    Shift+Delete  Cut, remove the currently selected text                  and place it in the clipboard. (same as                  Cut menu item or ^X) for compatibility                  with Motif standard key binding    Shift+Ctrl+    Delete        Cut the primary selection to the cursor                  location.</PRE></P><P><PRE>    Home          Move the cursor to the beginning of the                  line</PRE></P><P><PRE>    Ctrl+Home     Move the cursor to the beginning of the                  file</PRE></P><P><PRE>    End           Move the cursor to the end of the line</PRE></P><P><PRE>    Ctrl+End      Move the cursor to the end of the file</PRE></P><P><PRE>    PageUp        Scroll and move the cursor up by one page.</PRE></P><P><PRE>    Ctrl+PageUp   Scroll and move the cursor left by one                  page.    PageDown      Scroll and move the cursor down by one                  page.</PRE></P><P><PRE>    Ctrl+PageDown Scroll and move the cursor right by one                  page.</PRE></P><P><PRE>    F10           Make the menu bar active for keyboard                  input (Arrow Keys, Return, Escape,                  and the Space Bar)</PRE></P><P><H3>Specialty Keyboards  </H3></P><P>On machines with different styles of keyboards, generally, text editingactions are properly matched to the labeled keys, such as Remove,Next-screen, etc..  If you prefer different key bindings, see the sectiontitled "<A HREF="#Key_Binding">Key Binding</A>" under the Customizing heading in the Help menu.<P><HR></P><P><A NAME="Shifting_and_Filling"></A><H2> Shifting and Filling </H2></P><P><H3>Shift Left, Shift Right</H3></P><P>While shifting blocks of text is most important for programmers (See Featuresfor Programming), it is also useful for other tasks, such as creatingindented paragraphs.</P><P>To shift a block of text one tab stop to the right, select the text, thenchoose Shift Right from the Edit menu.  Note that the accelerator keys forthese menu items are Ctrl+9 and Ctrl+0, which correspond to the right andleft parenthesis on most keyboards.  Remember them as adjusting the text inthe direction pointed to by the parenthesis character.  Holding the Shift keywhile selecting either Shift Left or Shift Right will shift the text by onecharacter.</P><P>It is also possible to shift blocks of text by selecting the textrectangularly, and dragging it left or right (and up or down as well).  Usinga rectangular selection also causes tabs within the selection to berecalculated and substituted, such that the non-whitespace characters remainstationary with respect to the selection.</P><P><H3>Filling  </H3></P><P>Text filling using the Fill Paragraph command in the Edit menu is one of themost important concepts in NEdit.  And it will be well worth your while tounderstand how to use it properly.</P><P>In plain text files, unlike word-processor files, there is no way to tellwhich lines are continuations of other lines, and which lines are meant to beseparate, because there is no distinction in meaning between newlinecharacters which separate lines in a paragraph, and ones which separateparagraphs from other text.  This makes it impossible for a text editor likeNEdit to tell parts of the text which belong together as a paragraph fromcarefully arranged individual lines.</P><P>In continuous wrap mode (Preferences -&#62; Wrap -&#62; Continuous), linesautomatically wrap and unwrap themselves to line up properly at the rightmargin.  In this mode, you simply omit the newlines within paragraphs and letNEdit make the line breaks as needed.  Unfortunately, continuous wrap mode isnot appropriate in the majority of situations, because files with extremelylong lines are not common under Unix and may not be compatible with alltools, and because you can't achieve effects like indented sections, columns,or program comments, and still take advantage of the automatic wrapping.</P><P>Without continuous wrapping, paragraph filling is not entirely automatic. Auto-Newline wrapping keeps paragraphs lined up as you type, but onceentered, NEdit can no longer distinguish newlines which join wrapped text,and newlines which must be preserved.  Therefore, editing in the middle of aparagraph will often leave the right margin messy and uneven.</P><P>Since NEdit can't act automatically to keep your text lined up, you need totell it explicitly where to operate, and that is what Fill Paragraph is for. It arranges lines to fill the space between two margins, wrapping the linesneatly at word boundaries.  Normally, the left margin for filling is inferredfrom the text being filled.  The first line of each paragraph is consideredspecial, and its left indentation is maintained separately from the remaininglines (for leading indents, bullet points, numbered paragraphs, etc.). Otherwise, the left margin is determined by the furthest left non-whitespacecharacter.  The right margin is either the Wrap Margin, set in thepreferences menu (by default, the right edge of the window), or can also bechosen on the fly by using a rectangular selection (see below).</P><P>There are three ways to use Fill Paragraph.  The simplest is, while you aretyping text, and there is no selection, simply select Fill Paragraph (or typeCtrl+J), and NEdit will arrange the text in the paragraph adjacent to thecursor.  A paragraph, in this case, means an area of text delimited by blanklines.</P><P>The second way to use Fill Paragraph is with a selection.  If you select arange of text and then chose Fill Paragraph, all of the text in the selectionwill be filled.  Again, continuous text between blank lines is interpreted asparagraphs and filled individually, respecting leading indents and blanklines.</P><P>The third, and most versatile, way to use Fill Paragraph is with arectangular selection.  Fill Paragraph treats rectangular selectionsdifferently from other commands.  Instead of simply filling the text insidethe rectangular selection, NEdit interprets the right edge of the selectionas the requested wrap margin.  Text to the left of the selection is not

⌨️ 快捷键说明

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