Edit, Search, Replace

The Zen Studio Compiler supports all standard editor operations such as Undo, Redo, Cut, Copy, Paste, Find/Replace, Delete, and more.

Indentation

Indenting text is fully supported by the GPC Editor. Indentation is the addition of extra white space at the start of a line to separate blocks of text, adding a hierarchy. When editing, pressing the Tab key will insert a white space starting from the cursors location on a single line, or select multiple lines and pressing the Tab key will add additional white space at the beginning of each line within the selection, allowing you to indent entire blocks of text at once. Pressing Shift-TAB will remove the indentation.

Overtype

You can enable and disable overtyping (that is, instead of inserting characters at the cursor, you replace them) by pressing the Insert key of your keyboard. The rightmost section of the statusbar will indicate the current mode: INS for inserting characters, OVR for overwriting them (overtype). The displayed cursor will also change shape accordingly.

Selecting Text

Selected text can be moved to another part of the same document, copied elsewhere in the same or another document, searched for text, deleted, and more. When using the mouse, the most basic way is to drag the mouse from a start point to an end point. You can also double click a word to select it, or triple click on a line to select it, or simply click on the line number margin.

You can extend a selection by Shift-clicking its new insertion point while using navigation keys in conjunction with the SHIFT key to either expand or reduce the selection by a single space or by entire lines.

To select a rectangle, use the above methods while also holding the ALT key down. For example, use a mouse to Alt-click the start point and Alt-move the mouse to the end point while holding down the left button.

Edit Menu

Easily perform the various editor operations by selecting the corresponding menu item from the Edit Menu, or by using the keyboard shortcuts associated with each option. Additionally these operations and more are also available in the context menu by clicking the right mouse button inside the editor window.

Undo

Each time undo is used the last input in a script will be undone. This can be a single letter, number, or if text was pasted. Undo can be repeatedly done until the script is at the original script from when it was loaded. To Undo simply select Edit 👉 Undo (CTRL + Z).

Redo

This command is used to reverse any Undo action. To Redo simply select Edit 👉 Redo (CTRL + Y).

Cut

Cut will remove highlighted text which can be pasted later into a script. To Cut simply select Edit 👉 Cut (CTRL + X).

Copy

Copy will take highlighted text and allow it to be pasted later. The difference is when using copy the text will not be removed, and may be repeatedly pasted. To Copy simply select Edit 👉 Copy (CTRL + C).

Paste

Text that was copied or cut will be inserted when the paste command is used. To Paste simply select Edit 👉 Paste (CTRL + V).

Select All

All text in the current window will be highlighted which can then be cut, copied, or deleted. To Select All simply select Edit 👉 Select All (CTRL + A).

Find/Replace...

A very useful command for locating or replacing text. To Find or Replace text simply select Edit 👉 Find/Replace (CTRL + F).

Go to Line/Column...

Zen Scripts can become 4000+ lines long. Go directly to any line within a script. Jump to any line or column by simply selecting Edit 👉 Go to Line/Column... (CTRL + G).