package ocamlformat-mlx-lib

  1. Overview
  2. Docs
OCaml .mlx Code Formatter

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocamlformat-mlx-0.28.1.1.tbz
sha256=087d7256a52808715875814d8bccf9172f97e933b398fc8d29ec40dc89fa9e0e
sha512=809b690e6c21110f81918dfdb1b5efecd185a4f26eadb2bb3aa6eb8069db20989e8797650b22a2207b6b26abe97db357c2dc6056943a3a4f630c4e1a0ebb4f1b

doc/ocamlformat-mlx-lib.parser_shims/Ocamlformat_parser_shims/Misc/Style/index.html

Module Misc.StyleSource

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