Install caml2html by entering the following commands in the terminal:
sudo apt update sudo apt install caml2html
HTML and LaTeX colored syntax from OCaml source files - executable
Caml2html provides a command-line executable which converts a set of OCaml source files into a HTML or LaTeX document with colored syntax. A library is also provided for building web-page generators that would color OCaml code appropriately. . This package contains the caml2html executable.