What is a macro?

Macro is a series of editor commands. You are able to record these commands and then replay them later.

How do they work?

Begin recording by ether pressing record from the toolbar, Tools menu or using keybord shortcut (Ctrl+F5). Once in record mode, all text work is recorded. Cursor is set as the to recorder picture.

Enter your text and keyboard commands.

Press stop recording (CTRL+F5 again) and the macro dialog appears, where you may choose a macro name. Your macro is now ready for use.

Macros are saved as .PME (PSPad macro record) files. They are is saved in the .\PSPad\Macro folder, which is created when you make your first macro.

You are able to open macros from disk, edit and save them.

Warning: You are not prompted when you save a macro by the same name as another. It simply overwrites the previous macro.

The following default hotkeys are available for your macros: F5, F6, Alt+F6, Ctrl+Alt+F6. But if you want to assign them to your macros, you will need to go into the Macro Manager (Shift+Ctrl+F5) after you have named your macro (see Macro Manager).

For a list of commands see Macro commands.


  • Macro does not record mouse actions. Do block selections with Shift+Cursors.
  • Macro does not work with find, replace and other functions.
  • Macro length is unlimited (memory).

If you create a macro that selects text or uses arrows while you are in Word Wrap mode, it may act differently when you later execute the macro with Word Wrap off.

Macro editing

Choose menu Tools / Macro / Macro Manager / Edit macro, you will see macro content. You can use special highlighter and clips (Ctrl+Space).

Inclued with PSPad is user highlighter for macro file. For its use, you will need to manual added it (see Syntax highlight).

Recommended color settings for macro editing are as follows:

  • Comments - Black, Normal Font
  • Identifiers - Red, Normal Font (invalid commands will be colored in red)
  • Keywords - blue, Normal Font