6

I'm using diffy (click for github). It's awesome, but I can't figure out how to add colors using the css is comes with. The readme mentions it's possible to do this, but I'm not really sure how to leverage their css.

I'm pretty sure it's possible, since this guy talks about it.

Has anyone worked with diffy for colors before?

1 Answer 1

9

in your view, put :

<style>
  <%= Diffy::CSS %>
</style>

You can then copy

1
  • 1
    If using HAML, then write: %style= Diffy::CSS at the top of the view file.
    – Tom Lord
    Commented Aug 8, 2016 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.