authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-09-02 16:49:56+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-09-02 16:49:56+02:00
log5581b60393cd03773945f773942a8dcfbaffb5e8
treeb41b3b635d63374b46fa2fe432c6fb8460d08165
parentf7784a081fb399025b579ee7e1337a414af16d49
parent30e85c9c805897fe445d4a0fe09aaf90955fef34
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #12724 from alichraghi/patch-2

autodoc: highlight target line

1 files changed, 10 insertions(+), 0 deletions(-)

src/autodoc/render_source.zig+10
......@@ -79,6 +79,16 @@ pub fn genHtml(
7979 \\ text-align: right;
8080 \\ color: #999;
8181 \\ }
82 \\
83 \\ .line {
84 \\ width: 100%;
85 \\ display: inline-block;
86 \\ }
87 \\ .line:target {
88 \\ border-top: 1px solid #444;
89 \\ border-bottom: 1px solid #444;
90 \\ background: #333;
91 \\ }
8292 \\
8393 \\ @media (prefers-color-scheme: dark) {
8494 \\ body{