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 23K
  • Win 6K
  • OS X 12K
  • Linux 4K
Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5
Windows 0 3 3 1 4 2 3 4 9 3 1 7 2 3 1 1 0 2 2 1 0 0 1 0 1 2 0 0 0 3 2 5 4 4 0 3 3 1 2 1 2 0 1 3 1 3
OS X 0 2 2 3 4 4 3 1 1 5 6 3 4 4 2 5 2 5 6 1 6 6 4 3 2 4 1 4 0 3 1 1 1 9 1 2 1 3 2 8 4 2 4 0 3 4
Linux 2 2 1 0 3 0 7 6 3 1 1 7 1 1 1 0 1 3 2 0 1 4 1 0 7 1 3 4 2 0 1 2 2 4 3 1 3 0 0 0 6 3 1 0 1 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.