@@ -3,7 +3,14 | |||||
3 | <tbody> |
|
3 | <tbody> | |
4 | <% line_num = 1 %> |
|
4 | <% line_num = 1 %> | |
5 | <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> |
|
5 | <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> | |
6 | <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> |
|
6 | <tr> | |
|
7 | <th class="line-num" id="L<%= line_num %>"> | |||
|
8 | <a href="#L<%= line_num %>"><%= line_num %></a> | |||
|
9 | </th> | |||
|
10 | <td class="line-code"> | |||
|
11 | <pre><%= line %></pre> | |||
|
12 | </td> | |||
|
13 | </tr> | |||
7 | <% line_num += 1 %> |
|
14 | <% line_num += 1 %> | |
8 | <% end %> |
|
15 | <% end %> | |
9 | </tbody> |
|
16 | </tbody> |
General Comments 0
You need to be logged in to leave comments.
Login now