Menu

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

Download this file

100 lines (99 with data), 3.8 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
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!--
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is task_copysnippet.htm
*
* The Initial Developer of the Original Code is Peter Johnson
* (http://www.delphidabbler.com/).
*
* Portions created by the Initial Developer are Copyright (C) 2005-2009 Peter
* Johnson. All Rights Reserved.
*
* ***** END LICENSE BLOCK *****
-->
<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">Source Code tab</a> of the
<a href="dlg_preferences.htm">Preferences dialog 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.