Skip to content

Commit

Permalink
show: make highlight legible
Browse files Browse the repository at this point in the history
fixes #125
  • Loading branch information
stapelberg committed Mar 13, 2024
1 parent 4d62bb2 commit 1542595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dcs-web/templates/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<h2>Source of {{.filename}}</h2>

<!-- Line numbers on the left of the source code -->
<div class="lnr"><pre>{{range $idx, $line := .numbers}}{{ if eq $line $.line }}<span style="font-weight: bold; background-color: #333;">{{ end }}<a id="L{{$line}}"><span id="L{{$line}}"></a>{{$line}}</span>{{ if eq $line $.line }}</span>{{ end }}
<div class="lnr"><pre>{{range $idx, $line := .numbers}}{{ if eq $line $.line }}<span style="font-weight: bold; background-color: #333; color: #fff">{{ end }}<a id="L{{$line}}"><span id="L{{$line}}"></a>{{$line}}</span>{{ if eq $line $.line }}</span>{{ end }}
{{end}}
</pre></div>
<!-- The source code itself -->
Expand Down

0 comments on commit 1542595

Please sign in to comment.