Now let's add a few keyboard shortcuts to work with the REPL. You can do that by using the View -> Layout options. You can make your life really easy if you open two side by side tabs and in your left tab you can have your SML code file and in your right, you SML REPL session. Once you have installed the SublimeREPL package you will be able to go to the menu Tools -> SublimeREPL -> SML and open an SML REPL session that will support syntax highlight using the SML package, and command history, line editing and autocompletion. But you are not required to enable the theme to work with SML, this is just a preference. It even provides a Sublime Text Theme called Son of Obsidian that you could enable in Preferences -> Color Scheme -> SML -> Son of Obsidian. Once you have installed the SML package, if you open an SML file you should get syntax highlight capabilities within the editor. Do this for the two packages mentioned above: "SML" and "SublimeREPL" In the search box, you write the name of the package you want to install, select your package from the found list, and hit enter to get it installed.
Install sml windows install#
To install these packages you must go to the menu and look for Tools -> Command Palette and type "Install Package". There are two packages that we must install now: SML to support syntax highlighting features for the programming language and SublimeREPL which, as you might guess, is a package that adds REPL capabilities for many different programming languages to Sublime Text. Now that you have Package Control installed it is going to be really easy to install other packages. The provided link explains what you need to do to install this package. You must first Install Package Control to be able to install other packages directly from the editor. One of those packages is called Package Control. plugins) that you can install separately. Sublime Text supports an amazing set of packages (i.e. Make sure to download version 2, because the SML syntax support does not yet work with version 3. Step 1: Install Sublime Text and Package Control
Install sml windows how to#
For those who prefer Sublime Text instead of Emacs as the editor of choice to program SML, the following guide describes how to configure Sublime Text to work with SML.įor this guide to work for you, you must already have installed smlnj.