Applying style without changing color, HOW?

S

Søren M. Olesen

Hi

I often write documentation, where I copy&paste lines, with color, from
VisualStudio. However eachtime I apply a style to the text in Word, all the
text turns into black, and the coloring is lost.....Is there a way to make
the style NOT change the coloring??

TIA

Søren
 
R

Robert M. Franz (RMF)

Hi Søren

Søren M. Olesen said:
I often write documentation, where I copy&paste lines, with color, from
VisualStudio. However eachtime I apply a style to the text in Word, all the
text turns into black, and the coloring is lost.....Is there a way to make
the style NOT change the coloring??

Not really, no: color is part of the style definition. When you apply a
paragraph style, you'll lose the present color.

Either you manage to apply only a character style (if all you want to
change is Font formatting) and make sure you don't specify any color
there, or you'd probably need a short macro that applies a given style
while retaining the current color.

2cents
Robert
 
M

Margaret Aldis

Bottom posted
Robert M. Franz (RMF) said:
Hi Søren



Not really, no: color is part of the style definition. When you apply a
paragraph style, you'll lose the present color.

Either you manage to apply only a character style (if all you want to
change is Font formatting) and make sure you don't specify any color
there, or you'd probably need a short macro that applies a given style
while retaining the current color.

Another solution might be to create character styles for the colours (define
as default para font + appropriate colour), and use search and replace to
apply the character style to text currently in that colour. Then when you
apply the paragraph style the character style will be retained. Note,
however, that you can't apply more than one character style at a time, so
you couldn't also use Strong, Emphasis etc but would need to stick to direct
formatting.
 

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