Quotation Marks to selection?

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

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

TOPICS
Feature request, How to, Type

Views

82

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

Quotation Marks to selection?

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

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

TOPICS
Feature request, How to, Type

Views

83

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

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 24, 2020 1
Participant ,
Dec 24, 2020

Copy link to clipboard

Copied

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

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
Reply
Loading...
Dec 24, 2020 1
Enthusiast ,
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

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 24, 2020 2
TorkAvto LATEST
Dec 26, 2020

Copy link to clipboard

Copied

This works perfect! Thank you soo much!!

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
Reply
Loading...
Dec 26, 2020 0