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

Powershell Copy Code button also copies PS and path #14498

Open
SimonDMC opened this issue May 9, 2024 · 0 comments · May be fixed by #14725
Open

Powershell Copy Code button also copies PS and path #14498

SimonDMC opened this issue May 9, 2024 · 0 comments · May be fixed by #14725
Assignees
Labels
engineering Problems or updates to developers.cloudflare.com website

Comments

@SimonDMC
Copy link

SimonDMC commented May 9, 2024

Example URL(s)

Actual Behavior

When clicking the Copy Code button on powershell code snippets, the whole code block is copied, including PS and the current path.

cloudflare-docs-copy-issue.mp4

Additionally (unlike the bash code snippets), the PS and path are selectable.

Expected Behavior

When clicking the Copy Code button on powershell code snippets, only the command (after PS and the path) gets copied.

Additional information

If possible, I'd like to fix this via a PR :)

@SimonDMC SimonDMC added the engineering Problems or updates to developers.cloudflare.com website label May 9, 2024
@SimonDMC SimonDMC linked a pull request May 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering Problems or updates to developers.cloudflare.com website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants