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

Always show Copy button in code blocks #96

Open
glin opened this issue Feb 19, 2025 · 0 comments
Open

Always show Copy button in code blocks #96

glin opened this issue Feb 19, 2025 · 0 comments

Comments

@glin
Copy link

glin commented Feb 19, 2025

Is your feature request related to a problem? Please describe.

Follow-up from the PPM Quarto migration: https://positpbc.slack.com/archives/C087T1PQSDR/p1739993749177159?thread_ts=1739405653.405299&cid=C087T1PQSDR

Copy buttons in Quarto code blocks are hidden and only visible over mouse hover by default. There is a config option to make Copy buttons always visible, and we think this would be useful to enable across the docs for usability and accessibility:

Describe the solution you'd like

I'm not sure where this would be added, but the config option is at: https://quarto.org/docs/output-formats/html-code.html#copy-button

format:
  html:
    code-copy: true

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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

1 participant