Edit|Paste

If you select Edit|Paste when the Window clipboard holds textual data, it will be inserted into the active file at the current position of the text cursor. If EditPad is in overwrite mode, and you're not pasting whole lines (see below), the pasted text overwrites the text after the cursor, as if you had typed in the text. Pressing the Insert key on the keyboard or clicking the Insert/Overwrite indicator on the status bar toggles between insert and overwrite modes.

If the active file does not use Windows line breaks, the text on the clipboard is automatically converted to the correct line break style before it is inserted. The text on the clipboard remains untouched, in case you want to paste it into other applications too.

If you want to paste a block of text from another application as a rectangular selection, first make a rectangular selection in EditPad, and then paste. EditPad will then interpret the text on the clipboard as a rectangular block and replace the selection with it. Text copied from EditPad Pro is always pasted in the way (linear or rectangular) you had it selected when you cut or copied it.

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.

In EditPad Pro, the option "paste whole lines when lines are copied as a whole" affects how text is pasted if you copied complete lines to the clipboard. Copying a complete line means to copy everything from the start of the line to the end of the line, including the line break at the end of the line. Copying multiple lines completely means copying everything from the start of the first line in the block until the end of the last line in the block, including the line break at the end of the last line. When the option "paste whole lines when lines are copied as a whole" is on, lines that were copied as a whole are always pasted as if the cursor were at the start of the line when you're pasting. Thus, lines copied as a whole are always pasted as a whole before the line that the cursor is on when pasting. This makes it easy to move blocks of lines around without worrying about the horizontal position of the text cursor. If this option is off, text is always pasted at the exact spot the text cursor is at, even when whole lines were copied. Only whole lines copied in EditPad can be pasted as whole lines. EditPad cannot determine whether text copied from other applications is a whole line or not. EditPad Lite does not have this option and always pastes at the exact spot the text cursor is at.

In hexadecimal mode, if the clipboard contains a hexadecimal representation of characters, the effect of the Paste command depends on whether the text cursor is in the hexadecimal section at the left, or the ASCII section at the right. If you paste into the hexadecimal section, EditPad will paste the bytes represented by the text on the clipboard. If you paste into the ASCII section, EditPad will paste the text on the clipboard "as is". E.g. if the clipboard holds "74657374", pasting into the hex section inserts "test", while pasting into the ASCII section inserts "74657374" into the file.

If the text on the clipboard is not text with hexadecimal values, EditPad pastes the text regardless of whether the cursor is in the text or hexadecimal section. If the clipboard holds something you copied in hexadecimal mode in EditPad, EditPad will always paste the bytes that you copied, even if you moved the cursor from the ASCII to hex section or vice versa. If you copied text from a file in EditPad that you're editing in text mode, then the hex interpretation does take place.

If you copy and paste between EditPad and another hex editing application, you may need to switch EditPad to hexadecimal mode and place the cursor in the hexadecimal or ASCII section of the editor to get the results you expect.

See also

Edit Menu
Edit|Cut
Edit|Copy
Edit|Swap with Clipboard
Block|Rectangular Selections