There should be no need to run Elm through Sublime Text - it's generally pretty simple to run the commands through the Command Prompt.
For development, all you should have to do is:
- Install the Windows installer (http://elm-lang.org/Install.elm)
- Create a folder for your Elm project (for example in "My Documents")
- Open the Command Prompt and cd to this directory - you can do this by typing "cd " (ie just three characters: c, d, and a space) then you can drag the folder with your Elm project into the Command Prompt and press enter (the Command Prompt should now have navigated to this folder)
- You can then type
elm-reactor
in this Command Prompt (this takes the .elm files that it finds in the folder and converts them over to Javascript and Html, and also runs a server that allows you to view the results in the web browser)
- Open Sublime Text to this folder to edit the files [*1] (also install Syntax Highlighting by searching Package Control for: "Elm Language Support")
- Open your web browser and go to the following address: http://localhost:8000
You should now be able to start developing. In the browser with localhost running, if you click on the wrench icon next to the file with your 'main' function the browser should update automatically when the files are changed (plus you get the time travelling debugger and other good stuff).
[*1] - you could start by jut copying over code from the Examples section of the Elm Lang website, then try modifying these to learn how it works, eg:
import Graphics.Element (..)
import Text (..)
main : Element
main =
plainText "Hello, World!"
Note:
- for building the project you can then use
elm-make
- for installing external packages (like elm-html) you you can use
elm-package install <package_author>/<package_name>
(you can find these in the libraries section of the Elm site)
Hope this helps! Elm's a lot of fun once you get started :)