4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>Pygments</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://pygments.org/">Pygments</a> is a generic syntax highlighter. Here is a <em>lexer</em> for highlighting
32 <a href="StandardML"> Standard ML</a>.</p></div>
33 <div class="ulist"><ul>
36 <a href="https://github.com/MLton/mlton/tree/master/ide/pygments/sml_lexer"><span class="monospaced">sml_lexer</span></a> — Provides highlighting of keywords, special constants, and (nested) comments.
43 <h2 id="_install_and_use">Install and use</h2>
44 <div class="sectionbody">
45 <div class="ulist"><ul>
48 Checkout all files and install as a <a href="http://pygments.org/">Pygments</a> plugin.
50 <div class="listingblock">
51 <div class="content monospaced">
52 <pre>$ git clone https://github.com/MLton/mlton.git mlton
53 $ cd mlton/ide/pygments
54 $ python setup.py install</pre>
59 Invoke <span class="monospaced">pygmentize</span> with <span class="monospaced">-l sml</span>.
66 <h2 id="_feedback">Feedback</h2>
67 <div class="sectionbody">
68 <div class="paragraph"><p>Comments and suggestions should be directed to <a href="MatthewFluet">MatthewFluet</a>.</p></div>
72 <div id="footnotes"><hr></div>
74 <div id="footer-text">
76 <div id="footer-badges">