Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy and Paste #182

Open
Bob-The-Marauder opened this issue Mar 3, 2023 · 2 comments
Open

Copy and Paste #182

Bob-The-Marauder opened this issue Mar 3, 2023 · 2 comments
Assignees

Comments

@Bob-The-Marauder
Copy link

For the code examples in the docs, it would be really handy, especially for new users if they could just click on a code example and have it copied to the clipboard rather than having to highlight it then copy it. This would be even better for commands broken over multiple lines as sometimes they will only work after you remove the linebreaks and slashes.

Example

Displayed version:

curl -u riakuser:captheorem4life \
  https://localhost:8098/types/<type>/buckets/<bucket>/keys/<key>

Version copied to clipboard:

curl -u riakuser:captheorem4life https://localhost:8098/types/<type>/buckets/<bucket>/keys/<key>
Copy link

pjaclark commented Mar 3, 2023

@pjaclark
Copy link

pjaclark commented Mar 3, 2023

To remove the slash/newline, one could do a regex replace on /\s+\\\s*[\r\n]+\s*/gm with a space.

@pjaclark pjaclark self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants