Misc.Style
type color =
| Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
type style =
| FG of color
| BG of color
| Bold
| Reset
val ansi_of_color : color -> string
val code_of_style : style -> string
val ansi_of_style_l : style list -> string
type Format.stag +=
| Style of style list
type tag_style = {
ansi : style list;
text_open : string;
text_close : string;
}
type styles = {
error : tag_style;
warning : tag_style;
loc : tag_style;
hint : tag_style;
inline_code : tag_style;
val no_markup : style list -> tag_style
val default_styles : styles
val cur_styles : styles ref
val get_styles : unit -> styles
val set_styles : styles -> unit
val style_of_tag : Format.stag -> tag_style
val as_inline_code : (Format_doc.Doc.t ref -> 'a -> 'b) -> Format_doc.Doc.t ref -> 'a -> unit
val inline_code : Format_doc.Doc.t ref -> string -> unit
val hint : Format_doc.Doc.t ref -> unit
val mark_open_tag : or_else:(Format.stag -> string) -> Format.stag -> string
val mark_close_tag : or_else:(Format.stag -> string) -> Format.stag -> string
val set_tag_handling : Format.formatter -> unit
val setup : Color.setting option -> unit