Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Diffy Gem: How to Use CSS

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?

like image 906
Ben Downey Avatar asked Jul 23 '12 21:07

Ben Downey


1 Answers

in your view, put :

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

You can then copy

like image 115
Erwan Avatar answered Oct 20 '22 00:10

Erwan