30.7 Specifying text colors

You can specify colors for both character and paragraph formats. Text color is set in the CSS, and also in the <font> tags, if you leave them enabled.

If you want certain paragraph or character formats to have colors, you can do the following:

  1. Identify the color you want (or define a new color) by number, and assign to it a hexadecimal color value:
    [Colors]
    nnn = ffffff
    
  2. Assign the color, by number, to the paragraph or character format:
    [HtmlStyles]
    ; Color1 - Color254 color text as defined in Frame and [Colors]
    ; NoColor suppresses use of the <font color=...> in the style.
    Fmtname = Colornnn
    

For example:

[Colors]
; Major headings should be blue:
102 = 0000ff
; Cautionary notes should be red:
99 = ff0033
[HtmlStyles]
Heading1 = Color102
Caution = Color99
Sidetip = NoColor

Previous Topic:  30.6.2 Choosing how to treat typographic elements

Next Topic:  30.8 Configuring preformatted text for HTML/XML

Parent Topic:  30. Mapping text formats to HTML/XML

Sibling Topics:

30.1 Choosing how to map formats

30.2 Mapping paragraph formats

30.3 Mapping character formats

30.4 Mapping special characters

30.5 Mapping fonts

30.6 Managing typographic elements for HTML or XML

30.8 Configuring preformatted text for HTML/XML

30.9 Converting footnotes to HTML or XML

30.10 Converting list formats to HTML (deprecated)