ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Elm Syntax Highlighting

by evancz ST3

Syntax Highlighting for Elm in Sublime Text

Details

Installs

  • Total 25K
  • Win 7K
  • Mac 13K
  • Linux 5K
Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23
Windows 2 5 2 2 6 4 5 5 1 4 4 1 5 6 2 3 4 4 2 4 1 2 5 1 1 2 1 3 2 4 1 4 4 6 0 1 3 2 1 1 3 4 6 6 1 1
Mac 0 2 4 5 2 4 3 4 2 4 2 4 3 4 2 0 6 1 4 3 3 4 1 3 4 7 3 6 5 5 5 4 2 2 7 3 2 0 3 3 2 2 0 4 7 2
Linux 0 1 1 1 1 5 1 1 6 4 1 3 4 3 3 2 2 1 5 2 2 3 2 3 3 2 6 3 2 2 4 3 2 4 1 3 1 5 2 0 2 4 1 1 7 0

Readme

Source
raw.​githubusercontent.​com

Elm Syntax Highlighting

Just add syntax highlighting for Elm.

Install Instructions

Recommended Workflow

I do all of my Elm development with Terminal and Sublime Text open next to each other like this:

Recommended Workflow

I mostly focus on the code in Sublime Text.

When I am curious if things work, I switch to Terminal and run something like elm make src/Main.elm to see if I get any errors.

Then I switch back to Sublime Text and use Ctrl-t (or Cmd-t on Mac) to navigate to the relevant files and make any fixes.

Workflow Benefits

The recommended workflow has some underappreciated benefits:

  1. Fast - Never wait for a slow editor. No background tasks eating RAM and CPU.
  2. Flexibile - Some projects needs more than an elm make call. I can switch to elm reactor or a custom ./build.sh script and keep essentially the same workflow.
  3. Robust - Not much can go wrong here, so I never spend time messing with integrations. Changes in elm, elm-test, or elm-format are only a concern in the terminal.

I really love this balance! It has that particular character of focused designs.


That said, I know some people want a bit more, so I made elm-format-on-save as well. It may be worth setting this up once you have been happily using Elm for a while and become curious what it might be like to use Elm at work.