Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RTF code for highlighting text

Posted on 2007-11-30
3
Medium Priority
?
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 1500 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Suggested Courses

715 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