view .svn/pristine/ad/adf31b2936fe356e09b9ab737cd473578efad2f1.svn-base @ 1540:322d7b57e5f0 live

Making this work through the api is too complicated for now; this will do OK
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 02 Jun 2015 10:58:31 +0100
parents 261b3d9a4903
children
line wrap: on
line source
<div class="autoscroll">
<table class="filecontent syntaxhl">
<tbody>
<% line_num = 1 %>
<% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %>
  <tr id="L<%= line_num %>">
    <th class="line-num">
      <a href="#L<%= line_num %>"><%= line_num %></a>
    </th>
    <td class="line-code">
      <pre><%= line.html_safe %></pre>
    </td>
  </tr>
  <% line_num += 1 %>
<% end %>
</tbody>
</table>
</div>