#### 15.4.5 Replacing content in RTF output

This method is deprecated in favor of the CodeReplace property described in §37.9.3 Surrounding or replacing text with code or macros.

You can direct DITA2Go to replace the content of a paragraph, or of a character-formatted span of text, with arbitrary RTF code:

    [WordStyles]
    ; format (char or para) = keyword
    ;  Replace deletes, and also puts out the RTF in [WordReplacements]
    Parafmt = Replace

You specify the replacement RTF code as a property of the format to which you assigned the Replace property:

    [WordReplacements]
    ; Replace causes the insertion of raw RTF code
    ;  in place of the original content of the named para or char format
    Parafmt = {some arcane string of RTF code}

See also:

§37.3.5.2 Inserting code with the CodeStore property.

Previous Topic: 15.4.4 Omitting content from RTF output

Next Topic: 15.5 Converting cross references and hypertext links

Parent Topic: 15.4 Modifying text appearance

Sibling Topics:

15.4.1 Adjusting line spacing

15.4.2 Specifying a style for quotes

15.4.3 Hiding content in Word

15.4.4 Omitting content from RTF output