mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 08:36:00 +03:00
[GH-ISSUE #30] Link to a line should jump to that line #27
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @berezovskyi on GitHub (Jun 25, 2023).
Original GitHub issue: https://github.com/matze/wastebin/issues/30
Via https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#linking_to_an_element_on_the_same_page, an
idcould be added to every row in https://github.com/matze/wastebin/blob/master/src/highlight.rs#L99 (should belet line = format!(r#"<td class="line" id="L{line_number}">{formatted_str}"#);)P.S. Thanks for a nice project!
@matze commented on GitHub (Jun 26, 2023):
Indeed that was the point why the line numbers are links in the first place 🙈, thanks for pointing that out!