help_data.h

来自「nedit 是一款linux下的开发源码的功能强大的编辑器」· C头文件 代码 · 共 1,238 行 · 第 1/5 页

H
1,238
字号
"Within an associated group of buttons, the arrow keys move the focus among the ","buttons.  Shift+Tab moves backward through the items. ","\n\n","Most items in dialogs have an underline under one character in their name. ","Pressing the Alt key along with this character, activates a button as if you ","had pressed it with the mouse, or moves the keyboard focus to the associated ","text field or list. ","\n\n","You can select items from a list by using the arrow keys to move the ","selection and space to select. ","\n\n","In file selection dialogs, you can type the beginning characters of the file ","name or directory in the list to select files ","\n\n","\01RLabeled Function Keys\01I","\n\n","The labeled function keys on standard workstation and PC keyboards, like the ","arrows, and page-up and page-down, are active in NEdit, though not shown in the ","pull-down menus. ","\n\n","Holding down the control key while pressing a named key extends the scope of ","the action that it performs.  For example, Home normally moves the insert ","cursor the beginning of a line.  Ctrl+Home moves it to the beginning of the ","file. Backspace deletes one character, Ctrl+Backspace deletes one word. ","\n\n","Holding down the shift key while pressing a named key begins or extends a ","selection.  Combining the shift and control keys combines their actions.  For ","example, to select a word without using the mouse, position the cursor at the ","beginning of the word and press Ctrl+Shift+RightArrow.  The Alt key modifies ","selection commands to make the selection rectangular. ","\n\n","Under X and Motif, there are several levels of translation between keyboard ","keys and the actions they perform in a program.  The \"\01QCustomizing NEdit\01I\", and ","\"\01QX Resources\01I\" 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. ","\n\n","\01RModifier Keys (in general)\01I","\n\n","\01A    Ctrl   Extends the scope of the action that the key\n","           would otherwise perform.  For example, Home\n","           normally moves the insert cursor to the beginning\n","           of a line. Ctrl+Home moves it to the beginning of\n","           the file.  Backspace deletes one character, Ctrl+\n","           Backspace deletes one word.\n","\01I\n","\01A    Shift  Extends the selection to the cursor position. If\n","           there's no selection, begins one between the old\n","           and new cursor positions.\n","\01I\n","\01A    Alt    When modifying a selection, makes the selection\n","           rectangular.\n","\01I\n","(For the effects of modifier keys on mouse button presses, see the section ","titled \"\01QUsing the Mouse\01I\") ","\n\n","\01RAll Keyboards\01I","\n\n","\01A    Escape        Cancels operation in progress: menu\n","                  selection, drag, selection, etc.  Also\n","                  equivalent to cancel button in dialogs.\n","\01I\n","\01A    Backspace     Delete the character before the cursor\n","\01I\n","\01A    Ctrl+BS       Delete the word before the cursor\n","\01I\n","\01A    Arrows --\n","\01I\n","\01A      Left        Move the cursor to the left one character\n","\01I\n","\01A      Ctrl+Left   Move the cursor backward one word\n","                  (Word delimiters are settable, see\n","                  \"\01QCustomizing NEdit\01A\", and \"\01QX Resources\01A\")\n","\01I\n","\01A      Right       Move the cursor to the right one character\n","\01I\n","\01A      Ctrl+Right  Move the cursor forward one word\n","\01I\n","\01A      Up          Move the cursor up one line\n","\01I\n","\01A      Ctrl+Up     Move the cursor up one paragraph.\n","                  (Paragraphs are delimited by blank lines)\n","\01I\n","\01A      Down        Move the cursor down one line.\n","\01I\n","\01A      Ctrl+Down   Move the cursor down one paragraph.\n","\01I\n","\01A    Ctrl+Return   Return with automatic indent, regardless\n","                  of the setting of Auto Indent.\n","\01I\n","\01A    Shift+Return  Return without automatic indent,\n","                  regardless of the setting of Auto Indent.\n","\01I\n","\01A    Ctrl+Tab      Insert an ASCII tab character, without\n","                  processing emulated tabs.\n","\01I\n","\01A    Alt+Ctrl+<c>  Insert the control-code equivalent of\n","                  a key <c>\n","\01I\n","\01A    Ctrl+/        Select everything (same as Select\n","                  All menu item or ^A)\n","\01I\n","\01A    Ctrl+\\        Unselect\n","\01I\n","\01A    Ctrl+U        Delete to start of line\n","\01I\n","\01RPC Standard Keyboard\01I","\n\n","\01A    Ctrl+Insert   Copy the primary selection to the\n","                  clipboard (same as Copy menu item or ^C)\n","                  for compatibility with Motif standard key\n","                  binding\n","    Shift+Ctrl+\n","    Insert        Copy the primary selection to the cursor\n","                  location.\n","\01I\n","\01A    Delete        Delete the character before the cursor.\n","                  (Can be configured to delete the character\n","                  after the cursor, see \"\01QCustomizing NEdit\01A\",\n","                  and \"\01QX Resources\01A\")\n","\01I\n","\01A    Ctrl+Delete   Delete to end of line.\n","\01I\n","\01A    Shift+Delete  Cut, remove the currently selected text\n","                  and place it in the clipboard. (same as\n","                  Cut menu item or ^X) for compatibility\n","                  with Motif standard key binding\n","    Shift+Ctrl+\n","    Delete        Cut the primary selection to the cursor\n","                  location.\n","\01I\n","\01A    Home          Move the cursor to the beginning of the\n","                  line\n","\01I\n","\01A    Ctrl+Home     Move the cursor to the beginning of the\n","                  file\n","\01I\n","\01A    End           Move the cursor to the end of the line\n","\01I\n","\01A    Ctrl+End      Move the cursor to the end of the file\n","\01I\n","\01A    PageUp        Scroll and move the cursor up by one page.\n","\01I\n","\01A    Ctrl+PageUp   Scroll and move the cursor left by one\n","                  page.\n","    PageDown      Scroll and move the cursor down by one\n","                  page.\n","\01I\n","\01A    Ctrl+PageDown Scroll and move the cursor right by one\n","                  page.\n","\01I\n","\01A    F10           Make the menu bar active for keyboard\n","                  input (Arrow Keys, Return, Escape,\n","                  and the Space Bar)\n","\01I\n","\01RSpecialty Keyboards  \01I","\n\n","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 \"\01QKey Binding\01I\" under the Customizing heading in the Help menu. ",NULL};static char * htxt_fill [] = {"\01RShift Left, Shift Right\01I","\n\n","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. ","\n\n","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. ","\n\n","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. ","\n\n","\01RFilling  \01I","\n\n","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. ","\n\n","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. ","\n\n","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. ","\n\n","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. ","\n\n","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). ","\n\n","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. ","\n\n","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. ","\n\n","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 ",

⌨️ 快捷键说明

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