Haml Pipe Separated Multiline syntax highlighting

How can I eradicate such ugliness?

enter image description here

It would be nice to have syntax highlighting on this stuff.

I thought this Textmate package here could do the trick, but no luck. I know that all this is connected with pipe dividers for multi-line operators.

+3
source share
1 answer

Do you even need these vertical bars in the first place? I never used them that way in my Haml files. According to Haml docs, a pipe character denotes a multi-line string :

%whoo
  %hoo= h(                       |
    "I think this might get " +  |
    "pretty long so I should " + |
    "probably make it " +        |
    "multiline so it doesn't " + |
    "look awful.")               |
  %p This is short.

, , , , , , , .

+1

All Articles