Two new initialization options are available in KEDIT for Windows 1.5:
An example:
KEDITW32 SAMPLE.FIL (LINE 62This invokes the 32-bit version of KEDIT for Windows. It tells KEDIT to begin editing SAMPLE.FIL and to start with line 62 as the current line.
The LINE option does not affect the cursor position; the cursor is left on the command line and is not automatically moved to the current line. However, you can use the COLUMN option to move the cursor to a specified column of the current line.
KEDITW32 SAMPLE.FIL (LINE 62 COLUMN 12This invokes the 32-bit version of KEDIT for Windows. It tells KEDIT to begin editing SAMPLE.FIL and to start with line 62 as the current line, with the cursor positioned in column 12 of that line.
If the cursor is on the command line, the contents of the command line selection are copied to the clipboard, replacing any previous contents of the clipboard. If there is no command line selection, KEDIT will instead copy the currently marked block to the clipboard. Command line selections are possible only if INTERFACE CUA is in effect.
If the cursor is in the file area, the contents of the currently marked block are copied to the clipboard, replacing the previous contents of the clipboard. An error message is displayed if there is no block marked in the current file.
The Edit Copy menu item, the Copy to Clipboard toolbar button, Ctrl+Delete, and (if INTERFACE CUA is in effect) Ctrl+C all issue the CLIPBOARD COPY command.
This does the same thing as CLIPBOARD COPY (that is, it copies the contents of a marked block or command line selection to the clipboard), and then it deletes the data involved from your file or from the command line.
The Edit Cut menu item, the Cut to Clipboard toolbar button, Shift+Del, and (if INTERFACE CUA is in effect) Ctrl+X all issue the CLIPBOARD CUT command.
If the cursor is on the command line, data from the clipboard is copied to the KEDIT command line at the cursor position, replacing any existing command line selection. You can only paste a single line of text from the clipboard to the command line. If there are multiple lines of text in the clipboard, attempts to paste to the command line will cause an error message. Any tab characters in data pasted to the command line are changed to blanks.
If the cursor is in the file area, data from the clipboard is copied into your file. If INTERFACE CUA is in effect and you have just marked an anchored block (that is, marked a block with the mouse or with Shift+cursor-pad-key), KEDIT first deletes the block, then positions the cursor at the location of the deleted block, and then inserts the clipboard's contents at that location. Otherwise, KEDIT inserts the marked block at the cursor position.
If the clipboard data came from a KEDIT stream block, from a KEDIT command line selection, or from some application other than KEDIT for Windows, it is inserted into your file at the cursor position as a stream of text. If the data came from a KEDIT box block, it is inserted at the cursor position as a rectangular section of text. If the data came from a KEDIT line block, it is inserted below the cursor line as a group of new lines.
Tab characters in clipboard data pasted into your file from other applications are expanded to blanks. If TABSIN OFF is not in effect, KEDIT does this according to the current TABSIN column settings; otherwise KEDIT uses the current SET TABS columns.
The Edit Paste menu item, the Paste from Clipboard toolbar button, Shift+Ins, and Ctrl+V all issue the CLIPBOARD PASTE command.
If there is no text in the clipboard, these commands have the same effect as CLIPBOARD CUT and CLIPBOARD COPY. Otherwise, these commands append the contents of the current selection to the existing clipboard text.
If text is already in the clipboard and it does not end in a new line sequence (a carriage return and a linefeed), these characters are added to the existing clipboard text before the contents of the selection are appended.
CLIPBOARD PUT and APPEND PUT let you modify the contents of the clipboard from within a KEDIT macro. The specified text replaces, or is appended to, any existing text in the clipboard.
For CLIPBOARD APPEND PUT, if text is already in the clipboard and it does not end in a new line sequence (a carriage return and a linefeed), these characters are added to the existing clipboard text before the new text is appended.
The clipboard is emptied of any data that it contains.
CMATCH is most useful when assigned to a key or to a toolbar button, so that if you press the key with the cursor positioned on, for example, a left parenthesis, the cursor will move to the matching right parenthesis. By default, the CMATCH command is assigned to Shift+F3.
If the character at the focus column is a ``{'' or ``}'', the CMATCH command moves the focus column to the matching ``}'' or ``{''. The same thing happens with ``('' and ``)'', with ``['' and ``]'', and with ``<'' and ``>''.
If you are working in a file with syntax coloring enabled and you are using a parser that defines matching items like parentheses, the CMATCH command will properly handle nested pairs of matching items and will skip over text in quotes or in comments.
If syntax coloring is not enabled, or if the active parser does not handle the item at the focus column, CMATCH will still handle nested pairs of parentheses, braces, and brackets, but will not properly handle parentheses, braces, and brackets inside comments or quotes.
CMATCH can also handle matching keywords that are defined in a syntax coloring parser. For example, in a KEXX macro containing the following:
if a = 5 then do j = 17 do i = 1 to 10 say i*j end endyou can place the cursor on the DO at the end of the first line and press Shift+F3 to move the cursor to the corresponding END in the last line.
The OUTER and INNER operands control what happens with matching items for which the syntax coloring parser has defined beginning, middle, and end elements. With CMATCH OUTER and CMATCH with no operands, the cursor will move between the beginning and end elements. With CMATCH INNER, the cursor will move to the next beginning, middle, or end element.
For example, in the following C code each of #if, #elif, #else, and #endif are highlighted by the syntax coloring facility:
#if defined(a) x = 17; #elif defined(b) x = 19; #else x = 20; #endifIf the cursor is positioned on any of these items, CMATCH OUTER and CMATCH with no operands will move the cursor to the next outer element. If the cursor is on #if, #elif, or #else, it will move to #endif. If the cursor is on #endif, it will cycle back to #if.
With CMATCH INNER, the cursor will stop at inner items as well as outer items, moving from #if to #elif to #else to #endif and back to #if again.
Ctrl+; Ctrl+' Ctrl+, Ctrl+. Ctrl+/ Ctrl+` Ctrl+Star Alt+Star App Ctrl+App Shift+App Alt+App ` Shift+` Alt+`The ``App'' key is the Application key found on some newer Windows-specific keyboards. The last three key combinations in the list were actually available in KEDIT for Windows 1.0, but were mistakenly omitted from the documentation.