Quotes to italics

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Is there any way of getting Word to look for text contained within quotes and
then change the text to italics?
 
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
 
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
 
Regarding my previous posting, this relates to the quotation marks being
retained and not deleted.
If deleted - please ignore ;-)
 
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

Back
Top