Module Camlhighlight_core

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


Type definitions


type lang = string 
How the source language is specified.
val lang_of_sexp : Sexplib.Sexp.t -> lang
val sexp_of_lang : lang -> Sexplib.Sexp.t
type normal_style = [ `Norm ] 
val normal_style_of_sexp : Sexplib.Sexp.t -> normal_style
val __normal_style_of_sexp__ : Sexplib.Sexp.t -> normal_style
val sexp_of_normal_style : normal_style -> Sexplib.Sexp.t
type special_style = [ `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_of_sexp : Sexplib.Sexp.t -> special_style
val __special_style_of_sexp__ : Sexplib.Sexp.t -> special_style
val sexp_of_special_style : special_style -> Sexplib.Sexp.t
type style = [ `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_of_sexp : Sexplib.Sexp.t -> style
val __style_of_sexp__ : Sexplib.Sexp.t -> style
val sexp_of_style : style -> Sexplib.Sexp.t
type elem = style * string 
An element is a pair consisting of a style and the contents.
val elem_of_sexp : Sexplib.Sexp.t -> elem
val sexp_of_elem : elem -> Sexplib.Sexp.t
type line = elem list 
A line is composed of a list of individual elements.
val line_of_sexp : Sexplib.Sexp.t -> line
val sexp_of_line : line -> Sexplib.Sexp.t
type t = line list 
The value of highlighted source-code samples. It's just a list of lines.
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t