The Programmer's WorkBench, like other editors designed for programmers, provides a macro language so that you can customize and extend the editor or automate common tasks. You can create macros in one of the following ways:
By recording actions you perform. The recording mechanism allows you to perform a procedure once, while PWB is recording. After you've recorded it, you can execute the macro to repeat the recorded procedure.
By manually writing macros. This technique is less automatic but does allow you to write more powerful macros.
These two techniques are not mutually exclusive. You can start by recording a macro that approaches the steps you want to perform, then edit it to expand its functionality or handle different situations.