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.