Feature #13746 » target_highlight.patch
public/stylesheets/scm.css (working copy) | ||
---|---|---|
64 | 64 |
font-family:"Liberation Mono", Courier, monospace; font-size:12px; |
65 | 65 |
} |
66 | 66 | |
67 |
table.filecontent tr:target th.line-num { background-color:#E0E0E0; color: #777; } |
|
68 |
table.filecontent tr:target td.line-code { background-color:#DDEEFF; } |
|
69 | ||
67 | 70 |
/* 12 different colors for the annonate view */ |
68 | 71 |
table.annotate tr.bloc-0 {background: #FFFFBF;} |
69 | 72 |
table.annotate tr.bloc-1 {background: #EABFFF;} |
app/views/common/_file.html.erb (working copy) | ||
---|---|---|
3 | 3 |
<tbody> |
4 | 4 |
<% line_num = 1 %> |
5 | 5 |
<% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %> |
6 |
<tr> |
|
7 |
<th class="line-num" id="L<%= line_num %>">
|
|
6 |
<tr id="L<%= line_num %>">
|
|
7 |
<th class="line-num"> |
|
8 | 8 |
<a href="#L<%= line_num %>"><%= line_num %></a> |
9 | 9 |
</th> |
10 | 10 |
<td class="line-code"> |
- « Previous
- 1
- 2
- Next »