Rich Text Example

Demonstrates styling individual words and characters.

Standard strings are monochromatic. “Rich Text” is composed of Lines containing multiple Spans, where each Span has its own style. This allows for multi-colored, multi-styled text blocks.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_rich_text/app.rb

Learning Outcomes

Use this example if you need to… - Highlight keywords in code (Syntax highlighting). - Create status lines with icons (e.g., “✔ Success” where the checkmark is green). - Emphasize specific data points in a paragraph.

Demo