Commit 048ad9c82397fd483985b0da683f60ab2b8c9f8f
Highlight current line number
Otherwise it's hard to visually identify part of the code you jumped to.
Author: xaizek
Author date (UTC): 2019-03-03 10:40
Committer name: xaizek
Committer date (UTC): 2019-03-03 10:40
Parent(s): 27ba122f22b812d421b43ef17306e902c3df7c1c
Signing key: 99DC5E4DB05F6BE2
Tree: 1c8423a7c7e2cbca93a6e7b099d20c8c58aa50b6
File web/file.ecpp changed (mode: 100644) (index 69be399..d4aa4c4) |
... |
... |
along with uncov. If not, see <http://www.gnu.org/licenses/>. |
181 |
181 |
% file->getCoverage()); |
% file->getCoverage()); |
182 |
182 |
% int line = 0; |
% int line = 0; |
183 |
183 |
% for (std::string s; std::getline(oss, s); ) { |
% for (std::string s; std::getline(oss, s); ) { |
184 |
|
<a name="l<$std::to_string(++line)$>"></a><$$ s $> |
|
|
184 |
|
<span id="l<$std::to_string(++line)$>" class="line"><$$ s $></span> |
185 |
185 |
% } |
% } |
186 |
186 |
</pre> |
</pre> |
187 |
187 |
|
|
File web/style.css changed (mode: 100644) (index f394e25..b778143) |
... |
... |
pre { |
86 |
86 |
line-height: 125%; |
line-height: 125%; |
87 |
87 |
} |
} |
88 |
88 |
|
|
89 |
|
pre > span.lineno { |
|
|
89 |
|
pre > span.line > span.lineno { |
90 |
90 |
font-weight: bold; |
font-weight: bold; |
91 |
91 |
padding-right: 5px; |
padding-right: 5px; |
92 |
92 |
} |
} |
|
... |
... |
a > span.lineno { |
95 |
95 |
font-weight: bold; |
font-weight: bold; |
96 |
96 |
} |
} |
97 |
97 |
|
|
|
98 |
|
span.line:target { |
|
99 |
|
background-color: #ff4; |
|
100 |
|
display: inline-block; |
|
101 |
|
width: 100%; |
|
102 |
|
} |
|
103 |
|
|
98 |
104 |
span.hitcount { |
span.hitcount { |
99 |
105 |
padding-left: 3px; |
padding-left: 3px; |
100 |
106 |
padding-right: 3px; |
padding-right: 3px; |