Menu

[r2509]: / trunk / Src / Help / HTML / task_copysnippet.htm  Maximize  Restore  History

Download this file

89 lines (88 with data), 3.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!--
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/
*
* Copyright (C) 2005-2012, Peter Johnson (www.delphidabbler.com).
*
* $Rev$
* $Date$
*
* Help topic describing how to copy a snippet to the clipboard.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text-html; charset=Windows-1252">
<title>
Copy Snippet to Clipboard
</title>
<link rel="stylesheet" href="../css/codesnip.css" type="text/css">
</head>
<body>
<h1>
<a name="task_copysnippet"></a>Copy Snippet to Clipboard
</h1>
<p>
There are three options ways for copying a snippet of code to the
clipboard.
</p>
<h2>
Copy Information
</h2>
<p>
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.
</p>
<p>
This option applies to any kind of snippet. Simply select a snippet in the
<a href="overview_pane.htm">Overview Pane</a> and then use the <em>Edit |
Copy Information</em> menu option or press
<span class="smallcaps">Ctrl+I</span>.
</p>
<h2>
Copy Snippet
</h2>
<p>
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.
</p>
<p>
A snippets description may be included as a comment, depending on the
commenting style specified on the
<a href="dlg_prefs_sourcecode.htm">Code Formatting tab</a> of the
<a href="dlg_preferences.htm">Preferences dialogue box</a>.
</p>
<p>
This option applies only to single routines (not types or constants) or
to categories that contain routines. Simply select a suitable snippet or
category in the <a href="overview_pane.htm">Overview Pane</a> then choose
the <em>Edit | Copy Snippet</em> menu option or press
<span class="smallcaps">Ctrl+N</span>.
</p>
<h2>
Copy Source Code
</h2>
<p>
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.
</p>
<p>
This option applies to any kind of snippet. Select a snippet in the
<a href="overview_pane.htm">Overview Pane</a> and then use the <em>Edit |
Copy Source Code</em> menu option or press
<span class="smallcaps">Ctrl+U</span>.
</p>
<p>
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:
</p>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.