Pygments is a generic syntax highlighter. Here is a lexer for highlighting Standard ML.

  • sml_lexer — Provides highlighting of keywords, special constants, and (nested) comments.

Install and use

  • Checkout all files and install as a Pygments plugin.

    $ git clone mlton
    $ cd mlton/ide/pygments
    $ python install
  • Invoke pygmentize with -l sml.


Comments and suggestions should be directed to MatthewFluet.