package hilite

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

Useful functions over source code strings producing HTML as plain strings

type 'a res = ('a, [ `Msg of string ]) Stdlib.result
val src_code_to_html : lang:string -> src:string -> string res

src_code_to_html ~lang ~src will highlight the source code src in language lang and return a string

OCaml

Innovation. Community. Security.