Changing Text Color


[Home][Index][Previous][Next]
You can highlight text for emphasis using the formatting code string:

{$COLOR=value text}

where value may be one of the following:

Note that formatting code strings are not case sensitive. There must be one-or-more blanks (or an equals sign ("=")) that will not display between the "COLOR" and the color value. There must be one-or-more blank spaces that will not display between the color value and the text to be displayed in that color. Blank spaces following the first non-blank character in the text will display. Format code strings must begin and end in the same text string - they cannot span a line break. (See also Changing the Default Text Color.)


Example:

\TITLE
Text Color Demo
\TF A T
This {$COLOR=red question} simply {$COLOR=blue displays}
{$COLOR=orange some} {$COLOR=magenta of the} colors 
{$COLOR=yellow available} for {$COLOR=pink highlighting}
{$COLOR=darkGray text} in the {$COLOR= cyan AppletQuiz}
applet.

The applet below runs this question file:

You need a Java-enabled browser to take this quiz.


[Home][Index][Previous][Next]
copyright © 1998 by Jerry L. Stanbrough - all rights reserved.
last update May 13, 1999 by JL Stanbrough (jstanbro@venus.net)