# Adaptive Card sample: RichTextBlock

- id: `richtextblock`
- Adaptive Card schema version: 1.5

Demonstrates RichTextBlock with TextRun inlines — colors, sizes, weights, highlight, italic, strikethrough, monospace, date/time parsing, and horizontal alignment (center/right).

## Elements

- `RichTextBlock` — inlines: TextRun avec color / size / weight / highlight / italic / strikethrough / fontType: monospace
- `RichTextBlock` — inlines: date-time parsing {{DATE(...)}} {{TIME(...)}}
- `RichTextBlock` — horizontalAlignment: center
- `RichTextBlock` — horizontalAlignment: right

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "RichTextBlock",
      "inlines": [
        "RichTextBlock ",
        {
          "type": "TextRun",
          "text": "supports ",
          "color": "accent"
        },
        {
          "type": "TextRun",
          "text": "all ",
          "color": "good"
        },
        {
          "type": "TextRun",
          "text": "text ",
          "color": "attention"
        },
        {
          "type": "TextRun",
          "text": "colors,",
          "color": "warning"
        },
        {
          "type": "TextRun",
          "text": " both regular and subtle. ",
          "isSubtle": true
        },
        {
          "type": "TextRun",
          "text": "Text ",
          "size": "small"
        },
        {
          "type": "TextRun",
          "text": "of ",
          "size": "medium"
        },
        {
          "type": "TextRun",
          "text": "all ",
          "size": "large"
        },
        {
          "type": "TextRun",
          "text": "sizes! ",
          "size": "extraLarge"
        },
        {
          "type": "TextRun",
          "text": "Light weight text. ",
          "weight": "lighter"
        },
        {
          "type": "TextRun",
          "text": "Bold weight text. ",
          "weight": "bolder"
        },
        {
          "type": "TextRun",
          "text": "Highlights.",
          "highlight": true
        },
        " ",
        {
          "type": "TextRun",
          "text": "Italics.",
          "italic": true
        },
        " ",
        {
          "type": "TextRun",
          "text": "Strikethrough.",
          "strikethrough": true
        },
        {
          "type": "TextRun",
          "text": " Monospace too!",
          "fontType": "monospace"
        }
      ]
    },
    {
      "type": "RichTextBlock",
      "inlines": [
        {
          "type": "TextRun",
          "text": "Date-Time parsing: {{DATE(2017-02-14T06:08:39Z,LONG)}} {{TIME(2017-02-14T06:08:39Z)}}"
        }
      ]
    },
    {
      "type": "RichTextBlock",
      "horizontalAlignment": "center",
      "inlines": [
        {
          "type": "TextRun",
          "text": "Rich text blocks also support center alignment. Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor "
        }
      ]
    },
    {
      "type": "RichTextBlock",
      "horizontalAlignment": "right",
      "inlines": [
        {
          "type": "TextRun",
          "text": "Rich text blocks also support right alignment. Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor Lorem ipsum dolor "
        }
      ]
    }
  ]
}
```
