Skip to content

Highlight selected line when mounted

Jacques Erasmus requested to merge 436949-fix-line-highlighting into master

What does this MR do and why?

Fixes highlighting of line numbers by selecting the hash when mounted.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-02-28_at_09.16.12 Screenshot_2024-02-28_at_09.17.01

How to set up and validate locally

  1. Open a file containing source code (sample.yml)
  2. Add a line number range to the URL (e.g. #L43-73)
  3. Refresh the page
  4. The line number range should be highlighted

Related to #436949 (closed)

Edited by Jacques Erasmus

Merge request reports