• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

191

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
Guide ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

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

Votes

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.

Votes

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
Guide ,
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

Votes

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
Guide ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

Votes

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