Automating repetitive tasks can be as simple as writing down the list of menus you want to use. Nisus Writer macros can activate any menu command by name.
Macros have full access to document content like text, comments, footnotes, tables, formatting and styles.
If you're an experienced coder you'll appreciate standard programming affordances like variables, arrays, hashes, loops, conditionals, functions, object-oriented data, and more.
Find and Replace
Macros integrate seamlessly with our extensive find features. Macros can search just like a regular user to select (or replace) text in open documents, or use specialized functions to customize searches and process results manually with code.
Regular expressions (regex) are fully supported in macros, including a customizable string literal syntax that prevents you from unnecessarily escaping your search patterns. Nisus Writer macros even have a find option to automatically convert regex captures to local variables.
Find Result Lists
Macros can generate and show find result lists that include arbitrary matches. This lets you easily generate reports that reference your document content. Some examples of what a macro might show as a list: