Skip to content

Copy button for Code Blocks #461

@lorenzolewis

Description

@lorenzolewis

What version of starlight are you using?

0.6.1

What is your idea?

Add a copy button to code blocks so people can easily copy-paste example code.

Already a thread in Discord on this but figured it would be nice to turn it into an issue (for selfish reasons so I can track it downstream 😅): https://discord.com/channels/830184174198718474/1070481941863878697/1120347723128909914

Why is this feature necessary?

Make it easier for developers to follow code examples

Do you have examples of this feature in other projects?

The amazing Astro Docs: https://docs.astro.build/en/getting-started/#start-your-first-project

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions