123456789101112131415161718192021222324252627282930(** [print_formatted ?stylizer ?line_end ?out value ~using]
prints [value] to [out] by formatting it with [using] -
which provides tokenization of [value] - and [stylizer]
which renders the resulting tokens into a pretty-printable
string. [line_end] is appended at the end of the string.
Defaults if not provided:
- [stylizer]: the default stylizer provided by [ansifmt]
- [line_end]: a newline ([\n])
- [out]: the standard output ([stdout]) *)letprint_formatted:typet.?stylizer:Formatting.Stylizer.t->?line_end:string->?out:out_channel->t->using:(moduleFormatting.TOKENIZABLEwithtypet=t)->unit=fun?(stylizer=Formatting.Stylizer.default)?(line_end="\n")?(out=stdout)value~using:(moduleM)->Printf.fprintfout"%s%s"(Formatting.Util.format~stylizervalue~using:(moduleM))line_end;;