Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Set or clear the highlight inline run property on the target text range.
  • Operation ID: format.highlight
  • API member path: editor.doc.format.highlight(...)
  • Mutates document: yes
  • Idempotency: conditional
  • Supports tracked mode: yes
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a TextMutationReceipt confirming the inline run property patch was applied to the target range.

Input fields

Example request

Output fields

Variant 1 (resolution.requestedTarget.kind=“text”)

Variant 2 (resolution.requestedTarget.kind=“text”)

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE
  • INVALID_TARGET
  • INVALID_INPUT

Non-applied failure codes

  • INVALID_TARGET

Raw schemas