sile / efmt

Erlang code formatter
Apache License 2.0
68 stars 4 forks source link

Add support for colored diff #91

Closed verbit closed 4 months ago

verbit commented 4 months ago

I think it would be nice if efmt could support a colored diff (similar to Python black's --color option [1]). While it is possible to workaround the missing colors with colordiff, that feels like a hack, especially since efmt outputs some messages before the actual diff.

[1] https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#color-no-color

sile commented 4 months ago

Sounds good. I'll try adding color diff support within a ween.