package hardcaml_waveterm

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Expert.WriteSource

Sourcetype styler = {
  1. start : (Base.string -> Base.unit) -> Base.unit;
    (*

    called at start

    *)
  2. set : (Base.string -> Base.unit) -> Hardcaml_waveterm_kernel__.Draw.Style.t -> Base.unit;
    (*

    called for each element

    *)
  3. eol : (Base.string -> Base.unit) -> Base.unit;
    (*

    called at end of each line

    *)
  4. finish : (Base.string -> Base.unit) -> Base.unit;
    (*

    called at end

    *)
}

stylting functions

Sourceval no_styler : styler

not styling information inserted

Sourceval html_styler : styler

Inline CSS per span element

Sourceval css_class_styler : styler

CSS specified with classes

Sourceval css_classes : Base.string

CSS classes for css_class_styler. Dump in CSS file or style tag.

Sourceval term_styler : styler

ANSI termianl escape codes

Sourceval html_escape : ?styler:styler -> (Base.string -> Base.unit) -> (Base.int * Hardcaml_waveterm_kernel__.Draw.Style.t) Base.array Base.array -> Base.unit

write data as html escape code

Sourceval utf8 : ?styler:styler -> (Base.string -> Base.unit) -> (Base.int * Hardcaml_waveterm_kernel__.Draw.Style.t) Base.array Base.array -> Base.unit

write data as utf-8

OCaml

Innovation. Community. Security.