Expand description
Convenient helper functions for common use cases:
- Printing to terminal
- Iterating lines with
\n
s - Modifying ranges of highlighted output
Structs§
- Lines
With Endings - An iterator over the lines of a string, including the line endings.
Functions§
- as_
24_ bit_ terminal_ escaped - Formats the styled fragments using 24-bit color terminal escape codes. Meant for debugging and testing.
- as_
latex_ escaped - Formats the styled fragments using LaTeX textcolor directive.
- debug_
print_ ops - Print out the various push and pop operations in a vector with visual alignment to the line. Obviously for debugging.
- modify_
range - Modify part of a highlighted line using a style modifier, useful for highlighting sections of a line.
- split_
at - Split a highlighted line at a byte index in the line into a before and after component.