Copy Snippet to Clipboard

There are three options ways for copying a snippet of code to the clipboard.

Copy Information

Copies all the information about the selected snippet to the clipboard in both plain text and rich text format. The rich text format version syntax highlights the source code.

This option applies to any kind of snippet. Simply select a snippet in the Overview Pane and then use the Edit | Copy Information menu option or press Ctrl+I.

Copy Annotated Source

Copies either a single selected snippet or a category of snippets. The Snippets are copied as a valid compilable Pascal fragment. Notes of any required units or other routines are included as comments. Both plain text and as rich text copies are placed on the clipboard with the rich text version being syntax highlighted.

A snippets description may be included as a comment, depending on the commenting style specified on the Code Formatting tab of the Preferences dialogue box.

This option applies only to routine snippets or to categories that contain routines. Simply select a suitable snippet or category in the Overview Pane then choose the Edit | Copy Annotated Source menu option or press Ctrl+N.

Copy Source Code

Copies only the source code of the selected snippet in plain text and in rich text format. Again the rich text copy is syntax highlighted. The snippet's description is not included as comments.

This option applies to any kind of snippet. Select a snippet in the Overview Pane and then use the Edit | Copy Source Code menu option or press Ctrl+U.

You can copy either a single routine or a whole category of routines to the clipboard. The code is copied as a valid Pascal fragment. Notes of any required units or other routines are included as comments. To copy a routine proceed as follows: