Module Camlhighlight_core

module Camlhighlight_core: sig .. end
Definition of Camlhighlight core types.


Type definitions


type lang_t = string 
How the source language is specified.
val __lang_t_of_sexp__ : Sexplib.Sexp.t -> lang_t
val lang_t_of_sexp : Sexplib.Sexp.t -> lang_t
val sexp_of_lang_t : lang_t -> Sexplib.Sexp.t
type normal_style_t = [ `Norm ] 
val __normal_style_t_of_sexp__ : Sexplib.Sexp.t -> normal_style_t
val normal_style_t_of_sexp : Sexplib.Sexp.t -> normal_style_t
val sexp_of_normal_style_t : normal_style_t -> Sexplib.Sexp.t
type special_style_t = [ `Arg
| `Atom
| `Bibx
| `Bold
| `Cbrk
| `Clas
| `Com
| `Date
| `Diff
| `File
| `Fixd
| `Fun
| `Ip
| `Ital
| `Kwd
| `Line
| `Math
| `Meta
| `Name
| `New
| `Num
| `Oarg
| `Old
| `Pfun
| `Prep
| `Prop
| `Pvar
| `Rex
| `Sch
| `Sel
| `Str
| `Sym
| `Time
| `Type
| `Undr
| `Url
| `Utyp
| `Val
| `Var ]
val __special_style_t_of_sexp__ : Sexplib.Sexp.t -> special_style_t
val special_style_t_of_sexp : Sexplib.Sexp.t -> special_style_t
val sexp_of_special_style_t : special_style_t -> Sexplib.Sexp.t
type style_t = [ `Arg
| `Atom
| `Bibx
| `Bold
| `Cbrk
| `Clas
| `Com
| `Date
| `Diff
| `File
| `Fixd
| `Fun
| `Ip
| `Ital
| `Kwd
| `Line
| `Math
| `Meta
| `Name
| `New
| `Norm
| `Num
| `Oarg
| `Old
| `Pfun
| `Prep
| `Prop
| `Pvar
| `Rex
| `Sch
| `Sel
| `Str
| `Sym
| `Time
| `Type
| `Undr
| `Url
| `Utyp
| `Val
| `Var ]
Styles.
val __style_t_of_sexp__ : Sexplib.Sexp.t -> style_t
val style_t_of_sexp : Sexplib.Sexp.t -> style_t
val sexp_of_style_t : style_t -> Sexplib.Sexp.t
type elem_t = style_t * string 
An element is a pair consisting of a style and the contents.
val __elem_t_of_sexp__ : Sexplib.Sexp.t -> elem_t
val elem_t_of_sexp : Sexplib.Sexp.t -> elem_t
val sexp_of_elem_t : elem_t -> Sexplib.Sexp.t
type line_t = elem_t list 
A line is composed of a list of individual elements.
val __line_t_of_sexp__ : Sexplib.Sexp.t -> line_t
val line_t_of_sexp : Sexplib.Sexp.t -> line_t
val sexp_of_line_t : line_t -> Sexplib.Sexp.t
type t = line_t list 
The value of highlighted source-code samples. It's just a list of lines.
val __t_of_sexp__ : Sexplib.Sexp.t -> t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t