elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

feature: View source #196

Closed toqueteos closed 8 years ago

toqueteos commented 8 years ago

TLDR: It would be great to have some sort of endpoint and/or option like /_source (similar to /_compile) to show .elm sources. We already have nice syntax coloring (I discovered it by clicking on a .go file)


I tried writing this on https://github.com/elm-lang/elm-reactor/issues/193 but it's locked to collaborators only.

Context

I've been trying out Elm recently and when I'm stuck with an error I can't manage to solve by myself I use elm reactor + ngrok http 8000 to let my friends see the bug in its live environment.

Why? It may seem like overkill but it's due to compiler errors not being copy-paste friendly.

Problem

Now, .elm files get automatically compiled and shown to the user but sometimes I just want to see their code.

process-bot commented 8 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 8 years ago

Seems reasonable. I have a UI in mind that would permit this pretty nicely. Will add to #193!