diff --git a/app/helpers/emails_helper.rb b/app/helpers/emails_helper.rb
index 08476f8516e8265af3ef0f1c374b732de0301863..6c253213c3b4fd2493fdf74effc929a57e1160e8 100644
--- a/app/helpers/emails_helper.rb
+++ b/app/helpers/emails_helper.rb
@@ -33,12 +33,8 @@ module EmailsHelper
     end
   end
 
-  def add_email_highlight_css
-    Rugments::Themes::Github.render(scope: '.highlight')
-  end
-
   def color_email_diff(diffcontent)
-    formatter = Rugments::Formatters::HTML.new(cssclass: 'highlight')
+    formatter = Rugments::Formatters::HTML.new(cssclass: "highlight", inline_theme: :github)
     lexer = Rugments::Lexers::Diff.new
     raw formatter.format(lexer.lex(diffcontent))
   end
diff --git a/app/views/layouts/notify.html.haml b/app/views/layouts/notify.html.haml
index 7eec93abdf69b1c6876f04e9878ff688d52b19fc..00c7cedce40da9ea45d8a1a586681f8d4c022595 100644
--- a/app/views/layouts/notify.html.haml
+++ b/app/views/layouts/notify.html.haml
@@ -27,8 +27,7 @@
     }
     .file-stats .deleted-file {
       color: #B00;
-    }
-    #{add_email_highlight_css}
+    }}
   %body
     %div.content
       = yield
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml
index bbf7004c9063464be57d900f1f0b190ba1bac660..a374a662333248d89faeb25e811a47cc03f2b429 100644
--- a/app/views/notify/repository_push_email.html.haml
+++ b/app/views/notify/repository_push_email.html.haml
@@ -59,8 +59,7 @@
             %strong
               = diff.new_path
         %hr
-        %pre
-          = color_email_diff(diff.diff)
+        = color_email_diff(diff.diff)
         %br
 
   - if @compare.timeout