Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Applying Brackets to Punctuation in GREP Paragraph Styles

New Here ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

New to GREP styles here. I was wondering if there was a way to utilize them to apply [] to all punctuation in my paragraph style.

 

For example, I used GREP styles to make all the numbers yellow and smaller in size. It would be great if every time I typed a  colon : or a comma , open and closed brackets could be applied to them as shown in the example below. Is this possible?

Screen Shot 2021-07-07 at 8.41.17 AM.png

 

TOPICS
Type

Views

54

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

you can't do it with grep style but with grep find-change

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

Okay thanks! And then would I need to run find/change every time I finished my formulas? I saved my Query so I can quickly pull it up again, but if there is any further way to automate that would be even better as I have 250 separate documents with these formulas.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

LATEST

You noted:

 

"It would be great if every time I typed a  colon : or a comma , …"

 

Instead of typing a ":" play this keyboard shortcut associated to this simplistic script "Ctrl-:":

 

app.selection[0].contents = " + [:] + ";

 

This KS will type for you " + [:] + "!

 

(^/)  The Jedi

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines