package utop

  1. Overview
  2. Docs
Universal toplevel for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

utop-2.14.0.tbz
sha256=0fd5a9bc5b458524a71463a1fe0cd16f9b7be13673ae303118b7216e0d273ba9
sha512=d64a5ab671424279be13ebd080deac7ee46e2c9bc3abcfc37a6dff164124cc3abc52801527c35d9160ec868f9b8f334880026aaeaad02e507112fd8392094845

doc/utop/UTop_styles/index.html

Module UTop_stylesSource

Styled loaded from ~/.utoprc

Sourcetype styles = {
  1. mutable style_keyword : LTerm_style.t;
  2. mutable style_symbol : LTerm_style.t;
  3. mutable style_ident : LTerm_style.t;
  4. mutable style_module : LTerm_style.t;
  5. mutable style_constant : LTerm_style.t;
  6. mutable style_char : LTerm_style.t;
  7. mutable style_string : LTerm_style.t;
  8. mutable style_quotation : LTerm_style.t;
  9. mutable style_comment : LTerm_style.t;
  10. mutable style_doc : LTerm_style.t;
  11. mutable style_blanks : LTerm_style.t;
  12. mutable style_error : LTerm_style.t;
  13. mutable style_directive : LTerm_style.t;
  14. mutable style_paren : LTerm_style.t;
  15. mutable style_font : string option;
  16. mutable style_foreground : LTerm_style.color option;
  17. mutable style_background : LTerm_style.color option;
  18. mutable style_cursor : LTerm_style.color option;
}

Type of utop styles.

Sourceval styles : styles

The styles in use.

Sourceval load : unit -> unit Lwt.t

Load resources into styles.

Sourceval stylise : (UTop_token.location -> LTerm_style.t -> unit) -> (UTop_token.t * UTop_token.location) list -> unit

stylise apply tokens calls apply on all token locations with the associated style.