GREP Style Report

Print a report of all GREP styles defined in a document's paragraph styles (CS4 and later). The GREP expressions are printed using syntax highlighting to make them more readable.

This script is part of the GREP collection. See the full collection here.ย 

The script creates a list of all GREP styles defined in a document’s paragraph styles. The screenshot shows some sample output. The name of the paragraph style is printed after Paragraph style:. Under that heading follow pairs of lines. In each pair, the first line is the name of the character style applied by the GREP expression shown in the second line.

GREP report styles

Styles in style groups are shown in the format myStyleGroup > mySubGroup > myStyle.

Use

Open the document whose GREP styles you want printed and run the script; it has no interface.


Version history

9 Nov. 2012: Fixed some errors in the order in which the styles are listed. And the script no longer needs the template document, it creates styles on the fly.

10 Sept. 2011: The script now includes styles in style groups.

Nov. 2009: First posted. Note: Works for InDesign CS4 and later.

Peter Kahrel Script Repository
Hosted as a community service, and with deep appreciation, by CreativePro.com


Scripts by Topic | Script Index
Basic Script Installation and Use
How to Modify or Configure These Scripts
Resources for Scripting and Publishing Automation
About This Repository


Repository Home Page


Contact Peter Kahrel


Note to users: You run scripts at your own risk: CreativePro and the author accept no liability for anything that may be caused by any of these scripts. Always take the necessary precautions. We encourage you to save backups and test scripts on copies of your documents.

Bookmark
Please login to bookmark Close

This article was last modified on August 22, 2026

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading comments...