Ahh, multi-mode! That is something to remember for the next time the moon turns full and I hunger for Elisp. :-)
I tried putting the GLSL code in a string constant, and the results are different, but not better. With a GLSL block, elm-format ignores the code, and elm-mode indents erratically. With a string block, elm-format still ignores the code, and elm-mode strips out all indentation. Basically, elm-format doesn't try to help, and elm-mode tries to help but gets in the way. Is there an editor that can do better? On Wed, Aug 17, 2016 at 2:27 AM, 'Rupert Smith' via Elm Discuss < [email protected]> wrote: > On Tuesday, August 16, 2016 at 6:54:38 PM UTC+1, Nick H wrote: >> >> The list has been talking about text editors lately. For those of you who >> use elm-webgl, is there a text editor that can properly format GLSL code >> blocks? >> >> fragmentShader : Shader {} Uniform Varying >>> fragmentShader = >>> [glsl| >>> precision mediump float; >>> varying vec4 fragColor; >>> >>> void main () { >>> gl_FragColor = fragColor; >>> } >>> |] >>> >> >> I am an Emacs user. As has been mentioned before, Emacs elm-mode >> indentation is busted. This isn't a problem for me most of the time, thanks >> to elm-format. But elm-format does not touch GLSL blocks, so I'm stuck >> fixing the indentation by hand. >> >> Any suggestions? Thanks! >> > > Emacs multi-mode ? :-) sorry couldn't resist... > > Does elm-format leave strings alone? In which case you could put the glsl > code in a string constant? > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
