Copying diff code block #2993
jeromew
started this conversation in
Feature Requests
Replies: 2 comments
-
Thanks for the feedback 🙌 Starlight uses Expressive Code as its code block renderer. I think this may be a good candidate to a feature request on their repository to discuss the idea and its feasibility. |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok thanks for the info @HiDeoo I opened an issue on expressive-code/expressive-code#314 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?0.32.1
What is your idea?
When I copy a diff code block into the clipboard, I would like to keep only the "+" lines and not the "-" lines
Why is this feature necessary?
In documentation steps, if I want to copy what is shown in the diff in order to use it, I want the "real" code in order to paste it. I do not want to have all the lines since in the current version the "+"/"-" have been removed and it is error prone to try and remember what should be kept and what should be removed
Do you have examples of this feature in other projects?
on https://starlight.astro.build/fr/guides/authoring-content/#blocs-de-code you have

which, when copied gives
the expected result for me would be
Participation
Beta Was this translation helpful? Give feedback.
All reactions