Skip to content

Commit 1542595

Browse files
committed
show: make highlight legible
fixes #125
1 parent 4d62bb2 commit 1542595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dcs-web/templates/show.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<h2>Source of {{.filename}}</h2>
5353

5454
<!-- Line numbers on the left of the source code -->
55-
<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 }}
55+
<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 }}
5656
{{end}}
5757
</pre></div>
5858
<!-- The source code itself -->

0 commit comments

Comments
 (0)