halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
193 stars 24 forks source link

Elm syntax coloring and formatting for blocks. #6

Closed OvermindDL1 closed 8 years ago

OvermindDL1 commented 8 years ago

Elm syntax coloring and formatting for blocks.

As per https://groups.google.com/forum/#!topic/elm-discuss/HIdcbC0IOHk the blocks in Elm, like glsl blocks, are not formatted properly. It would be nice if they were not only syntax colored properly based on the embedded type (for known blocks like GLSL), but potentially even change the atom language within them (like how Atom's markdown auto-colors code fences properly based on the language).

Example GLSL block in a function:

fragmentShader : Shader {} Uniform Varying
fragmentShader =
    [glsl|
         precision mediump float;
         varying vec4 fragColor;

         void main () {
             gl_FragColor = fragColor;
         }
    |]
halohalospecial commented 8 years ago

Hi @OvermindDL1, the language-elm package would be a better place for this :-)