4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>Enscript</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p><a href="http://www.gnu.org/s/enscript/">GNU Enscript</a> converts ASCII files to
32 PostScript, HTML, and other output languages, applying language
33 sensitive highlighting (similar to <a href="Emacs">Emacs</a>'s font lock mode). Here
34 are a few <em>states</em> files for highlighting <a href="StandardML"> Standard ML</a>.</p></div>
35 <div class="ulist"><ul>
38 <a href="https://github.com/MLton/mlton/blob/master/ide/enscript/sml_simple.st"><span class="monospaced">sml_simple.st</span></a> — Provides highlighting of keywords, string and character constants, and (nested) comments.
42 <div class="ulist"><ul>
45 <a href="https://github.com/MLton/mlton/blob/master/ide/enscript/sml_verbose.st"><span class="monospaced">sml_verbose.st</span></a> — Supersedes
46 the above, adding highlighting of numeric constants. Due to the
47 limited parsing available, numeric record labels are highlighted as
48 numeric constants, in all contexts. Likewise, a binding precedence
49 separated from <span class="monospaced">infix</span> or <span class="monospaced">infixr</span> by a newline is highlighted as a
50 numeric constant and a numeric record label selector separated from
51 <span class="monospaced">#</span> by a newline is highlighted as a numeric constant.
55 <div class="ulist"><ul>
58 <a href="https://github.com/MLton/mlton/blob/master/ide/enscript/sml_fancy.st"><span class="monospaced">sml_fancy.st</span></a> — Supersedes the
59 above, adding highlighting of type and constructor bindings,
60 highlighting of explicit binding of type variables at <span class="monospaced">val</span> and <span class="monospaced">fun</span>
61 declarations, and separate highlighting of core and modules level
62 keywords. Due to the limited parsing available, it is assumed that
63 the input is a syntactically correct, top-level declaration.
67 <div class="ulist"><ul>
70 <a href="https://github.com/MLton/mlton/blob/master/ide/enscript/sml_gaudy.st"><span class="monospaced">sml_gaudy.st</span></a> — Supersedes the
71 above, adding highlighting of type annotations, in both expressions
72 and signatures. Due to the limited parsing available, it is assumed
73 that the input is a syntactically correct, top-level declaration.
80 <h2 id="_install_and_use">Install and use</h2>
81 <div class="sectionbody">
82 <div class="ulist"><ul>
85 Version 1.6.3 of <a href="http://people.ssh.com/mtr/genscript">GNU Enscript</a>
87 <div class="ulist"><ul>
90 Copy all files to <span class="monospaced">/usr/share/enscript/hl/</span> or <span class="monospaced">.enscript/</span> in your home directory.
95 Invoke <span class="monospaced">enscript</span> with <span class="monospaced">--highlight=sml_simple</span> (or <span class="monospaced">--highlight=sml_verbose</span> or <span class="monospaced">--highlight=sml_fancy</span> or <span class="monospaced">--highlight=sml_gaudy</span>).
102 Version 1.6.1 of <a href="http://people.ssh.com/mtr/genscript">GNU Enscript</a>
104 <div class="ulist"><ul>
107 Append <a href="https://github.com/MLton/mlton/blob/master/ide/enscript/sml_all.st"><span class="monospaced">sml_all.st</span></a> to <span class="monospaced">/usr/share/enscript/enscript.st</span>
112 Invoke <span class="monospaced">enscript</span> with <span class="monospaced">--pretty-print=sml_simple</span> (or <span class="monospaced">--pretty-print=sml_verbose</span> or <span class="monospaced">--pretty-print=sml_fancy</span> or <span class="monospaced">--pretty-print=sml_gaudy</span>).
121 <h2 id="_feedback">Feedback</h2>
122 <div class="sectionbody">
123 <div class="paragraph"><p>Comments and suggestions should be directed to <a href="MatthewFluet">MatthewFluet</a>.</p></div>
127 <div id="footnotes"><hr></div>
129 <div id="footer-text">
131 <div id="footer-badges">