Skip to main content

TAG_PURE_TEXT

Adds tags to pure text content in the document. Tags can highlight or annotate specific text ranges. In Swing, tags can be virtual (temporary) or persistent. In Prime, tags are always persistent.

At a glance

  • Category Editor
  • Version: 1.2.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
tagsArray of tags to add. Each tag must have: tag (tag name), start (position), size (length), and optional attributes (key-value pairs). Can be a hardcoded array, a flowContext variable, or read from the default list input.NonefalsetrueNoneNone
virtualWhether tags should be virtual (temporary, not saved). Default is false (persistent tags). Only applies to Swing; Prime always persists tags.falsefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
listDefault list input for tags when tags config is not specified.Nonefalsefalse

Examples

Add hardcoded marks

- step: TAG_PURE_TEXT
tags:
- tag: "mark"
start: 100
size: 10

Add persistent tags with attributes

- step: TAG_PURE_TEXT
tags:
- tag: "mark"
start: 100
size: 10
attributes:
class: "highlight"
- tag: "mark"
start: 20
size: 15
attributes:
class: "important"

Add virtual tags from flowContext

- step: TAG_PURE_TEXT
tags: "{{ flowContext.analyzedTags }}"
virtual: true

See Also

General Resources: