Struct reedline::StyledText [−][src]
pub struct StyledText { /* fields omitted */ }
Expand description
A representation of a buffer with styling, used for doing syntax highlighting
Implementations
Render the styled string. We use the insertion point to render around so that we can properly write out the styled string to the screen and find the correct place to put the cursor. This assumes a logic that prints the first part of the string, saves the cursor position, prints the second half, and then restores the cursor position