codehike icon indicating copy to clipboard operation
codehike copied to clipboard

Focus and comment labels

Open gurkerl83 opened this issue 2 years ago • 2 comments

Just a quick question, is a combination of focus and a comment label possible? I thought when you focus, it would be very nice to activate the corresponding comment label so the code itself does not have to include any comments. Anyway, thx for the great library you have built!

gurkerl83 avatar Mar 15 '23 21:03 gurkerl83

what do you mean by "activate the comment label"?

pomber avatar Mar 15 '23 22:03 pomber

When you hover over a link with the focus protocol set to line 3 it gets highlighted.

line 1   function adipiscing(...elit) {
line 2      // label something something
line 3      console.log("hover me")            => would be nice if the comment shows on the right side, 
                                                  not requiring a separate hover over line 3 
line 5      return elit.map((ipsum) => ipsum.sit)
line 6   }

gurkerl83 avatar Mar 15 '23 22:03 gurkerl83