Apply background colors to emphasize important text. Color-coded highlighting for review, categorization, and emphasis.

OOXML Structure

<w:r>
  <w:rPr>
    <w:highlight w:val="yellow"/>
  </w:rPr>
  <w:t>Highlighted text</w:t>
</w:r>

Why you’d use this

  • Document review - Color-code feedback
  • Study notes - Highlight key concepts
  • Status tracking - Visual progress indicators
  • Multi-reviewer - Each person uses different color
  • Categorization - Group related content by color

Attributes

color
string
Background color (CSS color value)

Commands

setHighlight

Apply highlight with specified color
setHighlight('#FFEB3B')
setHighlight('rgba(255, 235, 59, 0.5)')
Parameters:
color
string
required
CSS color value

unsetHighlight

Remove highlight formatting
unsetHighlight()

toggleHighlight

Toggle highlight formatting
toggleHighlight()

Keyboard Shortcuts

CommandShortcutDescription
toggleHighlight()⌘/Ctrl-Shift-hToggle highlighted formatting