Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / Pygments
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
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">
9
10
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
13 /*<![CDATA[*/
14 asciidoc.install();
15 /*]]>*/
16 </script>
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
18 </head>
19 <body class="article">
20 <div id="banner">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
23 </div>
24 </div>
25 <div id="header">
26 <h1>Pygments</h1>
27 </div>
28 <div id="content">
29 <div id="preamble">
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>
34 <li>
35 <p>
36 <a href="https://github.com/MLton/mlton/tree/master/ide/pygments/sml_lexer"><span class="monospaced">sml_lexer</span></a>&#8201;&#8212;&#8201;Provides highlighting of keywords, special constants, and (nested) comments.
37 </p>
38 </li>
39 </ul></div>
40 </div>
41 </div>
42 <div class="sect1">
43 <h2 id="_install_and_use">Install and use</h2>
44 <div class="sectionbody">
45 <div class="ulist"><ul>
46 <li>
47 <p>
48 Checkout all files and install as a <a href="http://pygments.org/">Pygments</a> plugin.
49 </p>
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>
55 </div></div>
56 </li>
57 <li>
58 <p>
59 Invoke <span class="monospaced">pygmentize</span> with <span class="monospaced">-l sml</span>.
60 </p>
61 </li>
62 </ul></div>
63 </div>
64 </div>
65 <div class="sect1">
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>
69 </div>
70 </div>
71 </div>
72 <div id="footnotes"><hr></div>
73 <div id="footer">
74 <div id="footer-text">
75 </div>
76 <div id="footer-badges">
77 </div>
78 </div>
79 </body>
80 </html>