[MLton] MLton wiki

Matthew Fluet fluet@cs.cornell.edu
Mon, 1 Nov 2004 22:13:33 -0500 (EST)


Following Brent's suggestion, the MLton wiki uses enscript to syntax
highlight sml code.  See
   http://wiki.mlton.org/TypeChecking
for it in action.

The wiki syntax is:

{{{#!syntax sml
structure S : sig type t end =
struct
  type t = int
  val x = "foo"
}}}

> > > What version of MoinMoin are you using?  I'm
> > > wondering how hard it would be to write an SML
> > > syntax highlighter.
>
> Note that you can use GNU enscript to provide the
> syntax highlighting.  We did something similar on the
> Scheme and Erlang Cookbook websites.  For example,
> here's what the enscript output looks like:
>
> http://schemecookbook.org/Cookbook/StringInterpolation
>
> IIRC, enscript already has SML support, and if not
> it's quite easy to teach it.