Module Camlhighlight_core


module Camlhighlight_core: sig .. end

Public types



type lang_t = string 
How the source language is specified.
val lang_t_of_sexp__ : Sexplib.Sexp.t -> string
val lang_t_of_sexp : Sexplib.Sexp.t -> string
val sexp_of_lang_t : string -> Sexplib.Sexp.t
type normal_style_t = [ `Norm ] 
val normal_style_t_of_sexp__ : Sexplib.Sexp.t -> [> `Norm ]
val normal_style_t_of_sexp : Sexplib.Sexp.t -> [> `Norm ]
val sexp_of_normal_style_t : [< `Norm ] -> 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 ->
[> `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 ->
[> `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 sexp_of_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 ] ->
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 : [< `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 ] ->
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 -> style_t * string
val elem_t_of_sexp : Sexplib.Sexp.t -> style_t * string
val sexp_of_elem_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 ] *
string -> 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 -> (style_t * string) list
val line_t_of_sexp : Sexplib.Sexp.t -> (style_t * string) list
val sexp_of_line_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 ] *
string)
list -> 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 -> (style_t * string) list list
val t_of_sexp : Sexplib.Sexp.t -> (style_t * string) list list
val sexp_of_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 ] *
string)
list list -> Sexplib.Sexp.t