On 12/23/2011 10:57 AM, haihao shen wrote:
Hi All,

Does anyone know whether there is some tools or scripts to format ocaml
code in a unified format?

If you mean having a "good" indentation, opening it in Emacs+tuareg-mode then indenting will work fine.

Note that it's a file by file way and it doesn not split uselessly long lines to shorter ones: just indentation. Or I dont know how to fully use tuareg-mode ;-).

For a large set of files, I don't know how to ease the work.


--
RMA.

--
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to