Post 3310754 by sir@cmpwn.com
(DIR) More posts by sir@cmpwn.com
(DIR) Post #3309255 by sir@cmpwn.com
2019-01-24T02:16:58Z
0 likes, 0 repeats
The specific line of code you linked to on git.sr.ht is now highlighted more clearly, and if JavaScript is enabled you can select a range of lines, or even disjoint ranges of lines:https://git.sr.ht/~sircmpwn/scdoc/tree/master/src/main.c#L81-86,92-96Thanks to Ivan Habunek for implementing this!
(DIR) Post #3310711 by doesntgolf@octodon.social
2019-01-24T03:23:19Z
0 likes, 0 repeats
@sir it'd be cool if the hash for a range of lines could fall back to a normal (single line) anchor link even if js were disabled.Hmm... I suppose you'd have to implement the highlighted line range as a querystring, and then the hash could always just be an anchor to a single line. Then the highlighting could even be server generated, so would work without js. (Although you'd still probably need js to (easily) generate the range-selected links, unless you edited the url by hand.)
(DIR) Post #3310754 by sir@cmpwn.com
2019-01-24T03:25:51Z
0 likes, 0 repeats
@doesntgolf yeah there's not a good way to do that. We thought about it, though.