package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type color =
  1. | Black
  2. | Red
  3. | Green
  4. | Yellow
  5. | Blue
  6. | Magenta
  7. | Cyan
  8. | White
type style =
  1. | FG of color
  2. | BG of color
  3. | Bold
  4. | Reset
val ansi_of_color : color -> string
val code_of_style : style -> string
val ansi_of_style_l : style list -> string
type Format.stag +=
  1. | Style of style list
type tag_style = {
  1. ansi : style list;
  2. text_open : string;
  3. text_close : string;
}
type styles = {
  1. error : tag_style;
  2. warning : tag_style;
  3. loc : tag_style;
  4. hint : tag_style;
  5. 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 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
OCaml

Innovation. Community. Security.