Places the current selection on the Windows clipboard. If there is no current selection, and the option to copy the active line is turned on in the Editor Preferences, then the entire current paragraph is placed onto the clipboard.

This command is always invoked on whichever editor is showing the text cursor (vertical blinking bar), regardless of whether you use the main menu, a toolbar button, or a keyboard shortcut.

Any data previously held by the clipboard is removed from it. Use Edit|Copy Append instead if you do not want this.

If you select a block that includes one or more folded sections and copy the block to the clipboard, all selected lines, including lines hidden by folding, will be copied to the clipboard. Use Fold|Copy Visible Lines if you don’t want to copy the hidden lines. When pasting back into EditPad Pro, the folded sections remain folded.

Clipboard Formats

EditPad makes the copied text available on the clipboard in two formats. The first is unformatted Unicode text. This is the most basic Windows clipboard format that is understood by all Windows software. If you copy multiple lines of text to the clipboard then EditPad copies the text with Windows line breaks. This ensures maximum compatibility with other Windows applications. Many Windows applications do not understand any other line break styles.

The other format is EditPad’s own data format. This format supports all the same encodings, line break styles, and even binary data that EditPad supports. This data is used when you paste your text back into EditPad or another application from Just Great Software. If you paste into an editor using the same encoding then all bytes are preserved exactly.

When you copy and paste within a single EditPad instance, the data is not actually transferred to the clipboard. EditPad handles that internally. This allows you to copy and paste blocks of any size. Other applications may not be able to handle huge amounts of clipboard data. Their developers may not have taken precautions to make their applications refuse to paste more text than they can handle with good performance. So to prevent choking other applications, EditPad will not put more than 50 million characters of unformatted Unicode text on the clipboard. It will also not put more than 2,047 MB (just under 2 GB) of any data format on the clipboard.

The Windows clipboard does not have a standard format for binary data. If you’re editing a file in hexadecimal mode then EditPad Pro needs to convert the bytes you’re copying into text. The position of the cursor determines how EditPad Pro does this. If you copy from the hexadecimal section then EditPad Pro places the hexadecimal representation on the clipboard, such as “74657374”. If you copy from the ASCII section, then EditPad Pro copies the textual representation, such as “test”. If you want to paste into another hex editor, you should copy the hexadecimal representation. Hex editors know how to interpret this. If you copy from the ASCII section you may get different bytes in the other hex editor.

If you copy and paste between files in hexadecimal mode in EditPad Pro then it doesn’t matter where you copy from. EditPad Pro can use its own data format to transfer binary data. If you copy from a file in hexadecimal mode and paste into a file in text mode, then EditPad Pro pastes the hexadecimal representation if you copy from the hex section and the textual representation if you copy from the ASCII section.

EditPad Pro supports two additional clipboard formats: HTML and RTF. Edit|Copy makes either or both of these formats available if you have turned on Edit|Copy as HTML or Edit|Copy as RTF and the file you’re copying from uses syntax coloring.

See Also

Edit menu
Edit|Copy Append
Edit|Copy as HTML
Edit|Copy as RTF
Block|Rectangular Selections
Fold|Copy Visible Lines