style

fun style(fromIndex: Int, toIndex: Int, attributes: Map<String, String>)

Sets the attributes to the elements of the given range.

Throws

with ErrInvalidArgument if fromIndex or toIndex splits a UTF-16 surrogate pair.