diff --git a/assets/templates/default.html b/assets/templates/default.html index f91f57d..49ee395 100644 --- a/assets/templates/default.html +++ b/assets/templates/default.html @@ -27,6 +27,9 @@ } #file-contents code { background-color: inherit } .line-number { text-align: right } + .line:target { + background-color: yellow; + } diff --git a/main.scm b/main.scm index 411c254..2099ba7 100755 --- a/main.scm +++ b/main.scm @@ -205,9 +205,9 @@ `(table (@ (id "file-contents")) ,@(map (lambda (number line) - `(tr (@ (class "line")) - (td (@ ((class "line-number") - (id ,number))) + `(tr (@ ((class "line") + (id ,number))) + (td (@ (class "line-number")) (a (@ (href "#" ,number)) ,number)) (td (@ (class "line-contents")) (code ,line))))