| 1 |
= Pygments |
| 2 |
|
| 3 |
http://pygments.org/[Pygments] is a generic syntax highlighter. Here is a _lexer_ for highlighting |
| 4 |
<<StandardML#,Standard ML>>. |
| 5 |
|
| 6 |
* https://github.com/MLton/mlton/tree/master/ide/pygments/sml_lexer[`sml_lexer`] -- Provides highlighting of keywords, special constants, and (nested) comments. |
| 7 |
|
| 8 |
== Install and use |
| 9 |
* Checkout all files and install as a http://pygments.org/[Pygments] plugin. |
| 10 |
+ |
| 11 |
---- |
| 12 |
$ git clone https://github.com/MLton/mlton.git mlton |
| 13 |
$ cd mlton/ide/pygments |
| 14 |
$ python setup.py install |
| 15 |
---- |
| 16 |
|
| 17 |
* Invoke `pygmentize` with `-l sml`. |
| 18 |
|
| 19 |
== Feedback |
| 20 |
|
| 21 |
Comments and suggestions should be directed to <<MatthewFluet#>>. |