elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: View source

toqueteos opened this issue · comments

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 #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.

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.

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