You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, I love the expressive code blocks features 馃槏 Makes code blocks so much more helpful for users!
One idea to take them to the next level: I'd love to be able to add copy to clipboard buttons to individually selected highlighted lines (or blocks).
Looking at this example in the screenshot, if I hover over lines 2, 8 or 14-16, individual copy to clipboard buttons would show up and clicking them would only copy the respective line(s).
Why is this feature necessary?
As a user I鈥檓 rarely able to use the copy/paste button on longer code blocks like the one in the screenshot. Usually I only need the highlighted lines and don鈥檛 want the others. Copying the entire thing at this point is more work than manually selecting the highlighted lines.
I think this is especially helpful in situations where you want to instruct people to add a few lines to an already existing function, object, configuration, etc.
Do you have examples of this feature in other projects?
I don't know websites or frameworks that allow for this but I've always wondered why it's not a thing... Maybe I'm missing an obvious UX flaw with this but to me it'd be an awesome feature! So this could be a USP at this point ;)
The text was updated successfully, but these errors were encountered:
What is your idea?
First off, I love the expressive code blocks features 馃槏 Makes code blocks so much more helpful for users!
One idea to take them to the next level: I'd love to be able to add copy to clipboard buttons to individually selected highlighted lines (or blocks).
Looking at this example in the screenshot, if I hover over lines 2, 8 or 14-16, individual copy to clipboard buttons would show up and clicking them would only copy the respective line(s).
Why is this feature necessary?
As a user I鈥檓 rarely able to use the copy/paste button on longer code blocks like the one in the screenshot. Usually I only need the highlighted lines and don鈥檛 want the others. Copying the entire thing at this point is more work than manually selecting the highlighted lines.
I think this is especially helpful in situations where you want to instruct people to add a few lines to an already existing function, object, configuration, etc.
Do you have examples of this feature in other projects?
I don't know websites or frameworks that allow for this but I've always wondered why it's not a thing... Maybe I'm missing an obvious UX flaw with this but to me it'd be an awesome feature! So this could be a USP at this point ;)
The text was updated successfully, but these errors were encountered: