renderTo

fun renderTo(    document: StyledDocument,     classifiers: String,     range: IntRange,     replace: Boolean = true)

Apply the receiver to the specified range of the target StyledDocument.

Parameters

document

The target StyledDocument.

classifiers

The classifier sequence associated with the range. A NameAttribute will be attached to the range, to support the style classifier introspection feature.

range

The target one-based range of characters within the document.

replace

Indicates whether or not the previous attributes should be cleared before the new attributes are set. If true, the operation will replace the previous attributes entirely. If false, the new attributes will be merged with the previous attributes.