mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 04:27:52 +00:00
Highlight the current line, fix #359
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
$start = key($range) + 1;
|
||||
$code = join("\n", $range);
|
||||
?>
|
||||
<style>#frame-code-0 .linenums li:nth-child(<?= $line-$start+1 ?>) {
|
||||
/* Style current line */
|
||||
background-color: hsl(0, 0%, 33%);
|
||||
}</style>
|
||||
<pre class="code-block prettyprint linenums:<?php echo $start ?>"><?php echo $tpl->escape($code) ?></pre>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
Reference in New Issue
Block a user