Quotation Marks to selection?

Community Beginner ,
Dec 24, 2020 Dec 24, 2020

Copy link to clipboard

Copied

Hi everyone,

 

Is it possible to select a word or group or words and insert Quotation Marks automatically to this selection? I searched about it but couldn't find.

 

If there is a shortcut, that would be cool.

quota.jpg

TOPICS
Feature request, How to, Type

Views

122

Likes

translate

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

correct answers 1 Correct Answer

Enthusiast , Dec 24, 2020 Dec 24, 2020
Hello TorkAvto,The below script will add "Quotation Marks" automatically to whatever text is selected when executed.  app.selection[0].insertionPoints[-1].contents = '"'; app.selection[0].insertionPoints[0].contents = '"';  Regards,Mike

Likes

translate

Translate

Translate
Participant ,
Dec 24, 2020 Dec 24, 2020

Copy link to clipboard

Copied

If you go to Find/Change, select GREP

In the Find what section put [A-Za-z ]+

and the Change to put "$0"

Now down in the Find Format section click on the little magnifier and add the font type you want selected. ie Italic.

 

What this will do is look for all of the text that has italic on it and replaces it with its self but with "" included.

Likes

translate

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
Participant ,
Dec 24, 2020 Dec 24, 2020

Copy link to clipboard

Copied

[A-Za-z\s]+ for some reason i can't edit my posts.

Likes

translate

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
Enthusiast ,
Dec 24, 2020 Dec 24, 2020

Copy link to clipboard

Copied

Hello TorkAvto,

The below script will add "Quotation Marks" automatically to whatever text is selected when executed.

 

 

app.selection[0].insertionPoints[-1].contents = '"';
app.selection[0].insertionPoints[0].contents = '"';

 

 

Regards,

Mike

Likes

translate

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
Community Beginner ,
Dec 26, 2020 Dec 26, 2020

Copy link to clipboard

Copied

This works perfect! Thank you soo much!!

Likes

translate

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