Omni Systems, Inc. Mif2Go User's Guide, Version 55

<< Prev | Next >>

> 21 Mapping text formats to HTML/XML > 21.9 Specifying text colors for HTML

## 21.9 Specifying text colors for HTML

You can specify colors for both character and paragraph formats. Text color is set in CSS; and also in <font> tags, if you leave them enabled; see§21.7.4 Including or excluding font tags.

To use colors different from those in your FrameMaker document:

1. Identify the color you want (or define a new color) by number (in the range 9-254), and assign to it a hexadecimal color value:

[Colors]

nnn = ffffff

See §13.7.2 Mapping FrameMaker colors to new values.

2. Assign the color, by number prefixed with the word Color, to the paragraph or character format:

[HTMLParaStyles] or [HTMLCharStyles]

; 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

[HTMLParaStyles]

Heading1 = Color102

Caution = Color99

Sidetip = NoColor