Cut and Paste

The editor in the KCML workbench supports a cut and paste buffer which is integrated with the Windows clipboard. The Copy key (CTRL C) copies a marked section of the program to the paste buffer without deleting it, whilst Cut (CTRL X) not only copies but also deletes the text from the program. Paste (CTRL V) is used to paste text from the paste buffer back into the program at the current cursor location. Deleting text with the Delete key does not affect this buffer.

Pasting text with line numbers will renumber the lines according to the surrounding line numbers where the text is being pasted. Where space permits, multiples of ten are used for line numbers but if there are insufficient available line numbers for the paste then an error occurs and no action is taken.

Program lines are shortened using the \ line wrap indicator to make it easier to paste into email programs which may otherwise wrap the text unpredictably. The length of the line and the continuation character to use are set in $OPTIONS LIST. All automatic indenting for DEFSUB, FOR etc. is supressed. Blank lines are only sent to the clipboard if they are significant i.e. STR($OPTIONS LIST,3,1) is HEX(00).