Solved

RTF code for highlighting text

Posted on 2007-11-30
3
266 Views
Last Modified: 2012-05-05
What is the RTF code for highlighting text? (i.e it's background color)

In the case of specifying text foreground colors, the color code needs to be declared in a color table at the head of the file. Then to specify the foreground text colour I would use the following RTF code:

\\cf3

.. where the 3 indicates the color index in the color table. My first question is what is the RTF code for specifying a highlighted block? what would go in place of \\cf?? .. and secondly and it would be logical, is the highlighting colour specifyed by putting an entry into the colour table and then referencing it as is done in the case of foreground colors?
0
Comment
Question by:paddycobbett
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 20385988
0
 
LVL 1

Author Comment

by:paddycobbett
ID: 20386174
Thanks, i had seen that link as it so happens.. but it seems to suggest that text can only be highlighted using 1 of only 16 colors? Is that really the case, and any obvious reason why it is restricted as such??
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 20386342
In Word, there are fifteen colours in the Highlight selection palette, plus 'None', so that corresponds.

However, also in Word, you can achieve a similar effect, but with more colours, using character shading.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to dynamically set the form action using jQuery.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question