Quotes to italics

J

Jeff

Is there any way of getting Word to look for text contained within quotes and
then change the text to italics?
 
S

StevenM

To: Jeff,

Do a Find and Replace (click Ctrl-H).

The Find and Replace dialoge box should appear, add:

to Find what: "(*)"
or: ("*")
(the first omits the quote marks, the second keeps them)
add to Replace with: \1
Click on More
Check Wildcards
with Replace with: \1 selected (that is, with \1 in reverse video)
click on format -> font -> Italic
The phrase "Format: Font: Italic" should show up underneath Repace with:
Then click on Replace or Replace All and you're done.

Note: the brackets () create one expression, the result is \1. Inside the
expression is the wildcard character * (an asterisk), which represents one or
more characters. The quotaion marks can be either inside the expression, or
outside. If they are outside the expression, then they will not be included
with the replaced text, if they are inside the expression, they will.

Steven Craig Miller
 
D

DeanH

In addition to SteveM's message I would add a format of "Not Italic" to the
Find criteria. This will ensure that the Find doesn't find the text between a
quote that has already been found and the next open-quote of the next pairing.
All the best.
DeanH
 
D

DeanH

My previous posting obviously relates to the scenario that the quotation
marks are being retained and not deleted.
If being deleted - pleased ignore ;-)
 
D

DeanH

Regarding my previous posting, this relates to the quotation marks being
retained and not deleted.
If deleted - please ignore ;-)
 
J

Jeff

Perfect!

Thanks

StevenM said:
To: Jeff,

Do a Find and Replace (click Ctrl-H).

The Find and Replace dialoge box should appear, add:

to Find what: "(*)"
or: ("*")
(the first omits the quote marks, the second keeps them)
add to Replace with: \1
Click on More
Check Wildcards
with Replace with: \1 selected (that is, with \1 in reverse video)
click on format -> font -> Italic
The phrase "Format: Font: Italic" should show up underneath Repace with:
Then click on Replace or Replace All and you're done.

Note: the brackets () create one expression, the result is \1. Inside the
expression is the wildcard character * (an asterisk), which represents one or
more characters. The quotaion marks can be either inside the expression, or
outside. If they are outside the expression, then they will not be included
with the replaced text, if they are inside the expression, they will.

Steven Craig Miller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top