diff app/views/pastes/show.html.erb @ 417:080dd141898c

Add support for explicit highlighter languages
author nanaya <me@myconan.net>
date Mon, 14 Sep 2015 14:50:35 +0900
parents 39d59ae9d9db
children a69dd2d37950
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Mon Sep 14 14:48:36 2015 +0900
+++ b/app/views/pastes/show.html.erb	Mon Sep 14 14:50:35 2015 +0900
@@ -26,7 +26,7 @@
     </div>
 
     <div role="tabpanel" class="tab-pane" id="hl">
-      <pre class="paste-show__content"><code class="js-paste-hl zp-hl"></code></pre>
+      <pre class="paste-show__content"><code class="js-paste-hl zp-hl lang-<%= @paste.language %>"></code></pre>
     </div>
 
     <div role="tabpanel" class="tab-pane" id="md">