2008-06-09 21:02:55 +04:00
|
|
|
<div class="autoscroll">
|
2010-03-14 16:22:50 +03:00
|
|
|
<table class="filecontent syntaxhl">
|
2008-06-09 21:02:55 +04:00
|
|
|
<tbody>
|
|
|
|
<% line_num = 1 %>
|
|
|
|
<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
|
2011-11-20 08:17:19 +04:00
|
|
|
<tr>
|
|
|
|
<th class="line-num" id="L<%= line_num %>">
|
|
|
|
<a href="#L<%= line_num %>"><%= line_num %></a>
|
|
|
|
</th>
|
|
|
|
<td class="line-code">
|
|
|
|
<pre><%= line %></pre>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% line_num += 1 %>
|
2008-06-09 21:02:55 +04:00
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|