[next] [prev] [prev-tail] [tail] [up]

#### 6.5.2 Blocks

The IDE handles selected text just as the Turbo Pascal IDE handles it. This is slightly different from the way e.g. Wi n d o w s applications handle selected text.

Text can be selected in 3 ways:

1. Using the mouse, dragging the mouse over existing text selects it.
2. Using the keyboard, press Ct r l-K B to mark the beginning of the selected text, and Ct r l-K K to mark the end of the selected text.
3. Using the keyboard, hold the Sh i f t key depressed while navigating with the cursor keys.

There are also some special select commands:

1. The current line can be selected using Ct r l-K L.
2. The current word can be selected using Ct r l-K T.

In the Free Pascal IDE, selected text is persistent. After selecting a range of text, the cursor can be moved, and the selection will not be destroyed; hence the term ’block’ is more appropriate for the selection, and will be used henceforth...

Several commands can be executed on a block:

- Move the block to the cursor location (Ct r l-K V).
- Copy the block to the cursor location (Ct r l-K C).
- Delete the block (Ct r l-K Y).
- Write the block to a file (Ct r l-K W).
- Read the contents of a file into a block (Ct r l-K R). If there is already a block, this block is not replaced by this command. The file is inserted at the current cursor position, and then the inserted text is selected.
- Indent a block (Ct r l-K I).
- Undent a block (Ct r l-K U).
- Print the block contents (Ct r l-K P).

When searching and replacing, the search can be restricted to the block contents.

[next] [prev] [prev-tail] [front] [up]