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

📄 help.etx

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 ETX
📖 第 1 页 / 共 5 页
字号:
  beginning of the word and press Ctrl+Shift+RightArrow.  The Alt key modifies  selection commands to make the selection rectangular.  Under X and Motif, there are several levels of translation between keyboard  keys and the actions they perform in a program.  The "Customizing_NEdit_", and  "X_Resources_" sections of the Help menu have more information on this subject.   Because of all of this configurability, and since keyboards and standards for  the meaning of some keys vary from machine to machine, the mappings may be  changed from the defaults listed below.3>Modifier Keys (in general)    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.    Shift  Extends the selection to the cursor position. If           there's no selection, begins one between the old           and new cursor positions.    Alt    When modifying a selection, makes the selection           rectangular.  (For the effects of modifier keys on mouse button presses, see the section  titled "Using_the_Mouse_")3>All Keyboards    Escape        Cancels operation in progress: menu                  selection, drag, selection, etc.  Also                  equivalent to cancel button in dialogs.    Backspace     Delete the character before the cursor    Ctrl+BS       Delete the word before the cursor    Arrows --      Left        Move the cursor to the left one character      Ctrl+Left   Move the cursor backward one word                  (Word delimiters are settable, see                  "Customizing_NEdit_", and "X_Resources_")      Right       Move the cursor to the right one character      Ctrl+Right  Move the cursor forward one word      Up          Move the cursor up one line      Ctrl+Up     Move the cursor up one paragraph.                  (Paragraphs are delimited by blank lines)      Down        Move the cursor down one line.      Ctrl+Down   Move the cursor down one paragraph.    Ctrl+Return   Return with automatic indent, regardless                  of the setting of Auto Indent.    Shift+Return  Return without automatic indent,                  regardless of the setting of Auto Indent.    Ctrl+Tab      Insert an ASCII tab character, without                  processing emulated tabs.    Alt+Ctrl+<c>  Insert the control-code equivalent of                  a key <c>    Ctrl+/        Select everything (same as Select                  All menu item or ^A)    Ctrl+\        Unselect    Ctrl+U        Delete to start of line3>PC Standard Keyboard    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.    Delete        Delete the character before the cursor.                  (Can be configured to delete the character                  after the cursor, see "Customizing_NEdit_",                  and "X_Resources_")    Ctrl+Delete   Delete to end of line.    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.    Home          Move the cursor to the beginning of the                  line    Ctrl+Home     Move the cursor to the beginning of the                  file    End           Move the cursor to the end of the line    Ctrl+End      Move the cursor to the end of the file    PageUp        Scroll and move the cursor up by one page.    Ctrl+PageUp   Scroll and move the cursor left by one                  page.    PageDown      Scroll and move the cursor down by one                  page.    Ctrl+PageDown Scroll and move the cursor right by one                  page.    F10           Make the menu bar active for keyboard                  input (Arrow Keys, Return, Escape,                  and the Space Bar)3>Specialty Keyboards    On machines with different styles of keyboards, generally, text editing  actions are properly matched to the labeled keys, such as Remove,  Next-screen, etc..  If you prefer different key bindings, see the section  titled "Key_Binding_" under the Customizing heading in the Help menu.   ----------------------------------------------------------------------Shifting and Filling--------------------3>Shift Left, Shift Right  While shifting blocks of text is most important for programmers (See Features  for Programming), it is also useful for other tasks, such as creating  indented paragraphs.  To shift a block of text one tab stop to the right, select the text, then  choose Shift Right from the Edit menu.  Note that the accelerator keys for  these menu items are Ctrl+9 and Ctrl+0, which correspond to the right and  left parenthesis on most keyboards.  Remember them as adjusting the text in  the direction pointed to by the parenthesis character.  Holding the Shift key  while selecting either Shift Left or Shift Right will shift the text by one  character.  It is also possible to shift blocks of text by selecting the text  rectangularly, and dragging it left or right (and up or down as well).  Using  a rectangular selection also causes tabs within the selection to be  recalculated and substituted, such that the non-whitespace characters remain  stationary with respect to the selection.3>Filling    Text filling using the Fill Paragraph command in the Edit menu is one of the  most important concepts in NEdit.  And it will be well worth your while to  understand how to use it properly.  In plain text files, unlike word-processor files, there is no way to tell  which lines are continuations of other lines, and which lines are meant to be  separate, because there is no distinction in meaning between newline  characters which separate lines in a paragraph, and ones which separate  paragraphs from other text.  This makes it impossible for a text editor like  NEdit to tell parts of the text which belong together as a paragraph from  carefully arranged individual lines.  In continuous wrap mode (Preferences -> Wrap -> Continuous), lines  automatically wrap and unwrap themselves to line up properly at the right  margin.  In this mode, you simply omit the newlines within paragraphs and let  NEdit make the line breaks as needed.  Unfortunately, continuous wrap mode is  not appropriate in the majority of situations, because files with extremely  long lines are not common under Unix and may not be compatible with all  tools, and because you can't achieve effects like indented sections, columns,  or program comments, and still take advantage of the automatic wrapping.  Without continuous wrapping, paragraph filling is not entirely automatic.   Auto-Newline wrapping keeps paragraphs lined up as you type, but once  entered, NEdit can no longer distinguish newlines which join wrapped text,  and newlines which must be preserved.  Therefore, editing in the middle of a  paragraph will often leave the right margin messy and uneven.  Since NEdit can't act automatically to keep your text lined up, you need to  tell 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 lines  neatly at word boundaries.  Normally, the left margin for filling is inferred  from the text being filled.  The first line of each paragraph is considered  special, and its left indentation is maintained separately from the remaining  lines (for leading indents, bullet points, numbered paragraphs, etc.).   Otherwise, the left margin is determined by the furthest left non-whitespace  character.  The right margin is either the Wrap Margin, set in the  preferences menu (by default, the right edge of the window), or can also be  chosen on the fly by using a rectangular selection (see below).  There are three ways to use Fill Paragraph.  The simplest is, while you are  typing text, and there is no selection, simply select Fill Paragraph (or type  Ctrl+J), and NEdit will arrange the text in the paragraph adjacent to the  cursor.  A paragraph, in this case, means an area of text delimited by blank  lines.  The second way to use Fill Paragraph is with a selection.  If you select a  range of text and then chose Fill Paragraph, all of the text in the selection  will be filled.  Again, continuous text between blank lines is interpreted as  paragraphs and filled individually, respecting leading indents and blank  lines.  The third, and most versatile, way to use Fill Paragraph is with a  rectangular selection.  Fill Paragraph treats rectangular selections  differently from other commands.  Instead of simply filling the text inside  the rectangular selection, NEdit interprets the right edge of the selection  as the requested wrap margin.  Text to the left of the selection is not  disturbed (the usual interpretation of a rectangular selection), but text to  the right of the selection is included in the operation and is pulled in to  the selected region.  This method enables you to fill text to an arbitrary  right margin, without going back and forth to the wrap-margin dialog, as well  as to exclude text to the left of the selection such as comment bars or other  text columns.   ----------------------------------------------------------------------File Format-----------  While plain-text is probably the simplest and most interchangeable file  format in the computer world, there is still variation in what plain-text  means from system to system.  Plain-text files can differ in character set,  line termination, and wrapping.  While character set differences are the most obvious and pose the most  challenge to portability, they affect NEdit only indirectly via the same font  and localization mechanisms common to all X applications.  If your system is  set up properly, you will probably never see character-set related problems  in NEdit.  NEdit can not display Unicode text files, or any multi-byte  character set.  The primary difference between an MS DOS format file and a Unix format file,  is how the lines are terminated.  Unix uses a single newline character.  MS  DOS uses a carriage-return and a newline.  NEdit can read and write both file  formats, but internally, it uses the single character Unix standard.  NEdit  auto-detects MS DOS format files based on the line termination at the start  of the file.  Files are judged to be DOS format if all of the first five line  terminators, within a maximum range, are DOS-style.  To change the format in  which NEdit writes a file from DOS to Unix or visa versa, use the Save As...  command and check or un-check the MS DOS Format button.  Wrapping within text files can vary among individual users, as well as from  system to system.  Both Windows and MacOS make frequent use of plain text  files with no implicit right margin.  In these files, wrapping is determined  by the tool which displays them.  Files of this style also exist on Unix  systems, despite the fact that they are not supported by all Unix utilities.   To display this kind of file properly in NEdit, you have to select the wrap  style called Continuous.  Wrapping modes are discussed in the sections:  Customizing -> Preferences, and Basic Operation -> Shifting and Filling.  The last and most minute of format differences is the terminating newline.   Some Unix compilers and utilities require a final terminating newline on all  files they read and fail in various ways on files which do not have it.  Vi  and approximately half of Unix editors enforce the terminating newline on all  files that they write; Emacs does not enforce this rule.  Users are divided  on which is best.  NEdit makes the final terminating newline optional  (Preferences -> Default Settings -> Terminate with Line Break on Save).   ----------------------------------------------------------------------Features for Programming========================Programming with NEdit

⌨️ 快捷键说明

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