renderTo

fun renderTo(document: StyledDocument, classifiers: String, start: Int, pastEnd: Int, 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.

start

The zero-based start of the characters to style in the UTF-16 String.

pastEnd

The zero-based pastEnd of the characters to style in the UTF-16 String.

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.