Inserting Expanding Text

Expanding text is a feature that lets you click a hotspot to expand and collapse content that appears after it in the same paragraph or other block element.

How to Insert Expanding Text

  1. Open the content file.
  2. In the XML Editor type and format the content that will become the expanding text.
  3. Highlight the portion of the paragraph that you want to be used as the hotspot. If you do not select any text in the paragraph, it will all become the hotspot.

    Note Although this feature is called "expanding text," the content does not have to be strictly text only. For example, you can use a small image for the hotspot.

  4. Select Insert > Expanding Text.

    The selection is now surrounded by brackets in the XML Editor (if markers are turned on). The hotspot appears with an icon next to it. A second set of empty brackets follows the hotspot.

    Note The font used in the expanding text depends on the settings specified for the MadCap|expandingHead and MadCap|expandingBody styles in your stylesheet.

  5. In the empty bracket, type the body text for the expanding effect.

    Note If you do not have markers enabled, you will not see the empty bracket. To enable markers, click the down arrow next to in the local toolbar of the XML Editor, then select Show Markers.

  6. (Optional) If you want to adjust the text that serves as the hotspot, you can highlight the text in the current hotspot area. Then in the Insert ribbon, click the down arrow in the Expanding Text field and select Expanding Hotspot. This pushes any text after your selecting into the second set of brackets.
  7. Click Save the active file. to save your work.