Mercurial > zeropaste
diff app/views/pastes/show.html.erb @ 55:f957ce997ff0
Added basic syntax highlighter.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 04:50:22 +0700 |
parents | e9b485638f93 |
children | 285cce9725bf |
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb Thu Oct 04 04:37:41 2012 +0700 +++ b/app/views/pastes/show.html.erb Thu Oct 04 04:50:22 2012 +0700 @@ -2,7 +2,7 @@ <div class="page-header"> <h1>Paste</h1> </div> -<pre><%= @paste.paste %></pre> +<pre class="prettyprint linenums"><%= @paste.paste %></pre> <ul class="nav nav-pills"> <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>