Closed rubenmoya closed 8 years ago
Well, that's going to vary depending on your syntax theme's Ruby coloring. Most syntax themes have white variables by default. If you want to change it, you can add something like this into your stylesheet config (Atom->Open Your Stylesheet) to override the color:
atom-text-editor,
atom-text-editor::shadow {
// Adjust embedded Ruby variable colors
.haml .meta.embedded.ruby {
color: #f33 !important;
}
}
That's perfectly valid Haml, btw. I use interpolation like that all the time. :+1:
Thank you! That did the trick! :+1:
No problem :+1:
I've discovered that you can mix text and variables using Ruby/Haml interpolation like this:
%p Lorem ipsum #{variable} dolor sit amet
I think it would be nice if it were in other color and not white like it is right now:
Maybe I'm wrong and I shouldn't be doing that because it's not a good practice or something, so, what do you think guys?