Solved

RTF code for highlighting text

Posted on 2007-11-30
3
267 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Designing forms 3 44
Calculate age in Microsoft Word 10 56
Replace value 2 34
Prevent certain words from being typed in a form 6 30
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

733 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