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 code to clipboard #2153

Closed
remarkablemark opened this issue Jan 29, 2023 · 1 comment
Closed

Copy code to clipboard #2153

remarkablemark opened this issue Jan 29, 2023 · 1 comment
Labels
enhancement Improved functionality help wanted Contributions are especially encouraged
Milestone

Comments

@remarkablemark
Copy link

Problem

Would TypeDoc be open to adding a button inside of code blocks that can copy code to clipboard similar to GitHub and Docusaurus?

GitHub example:

Screen Shot 2023-01-28 at 7 57 49 PM

Docusaurus example:

Screen Shot 2023-01-28 at 7 58 31 PM

Suggested Solution

I created a plugin typedoc-plugin-copy-code-to-clipboard (see docs) but it would be nice if TypeDoc natively supported this.

Search Terms

copy code block to clipboard

@remarkablemark remarkablemark added the enhancement Improved functionality label Jan 29, 2023
@Gerrit0 Gerrit0 added the help wanted Contributions are especially encouraged label Jan 29, 2023
@ilg-ul
Copy link

ilg-ul commented Apr 20, 2023

That would be a nice feature to have.

@Gerrit0 Gerrit0 added this to the v0.24.5 milestone Apr 21, 2023
remarkablemark added a commit to remarkablemark/typedoc-plugin-copy-code-to-clipboard that referenced this issue Apr 21, 2023
TypeStrong/typedoc#2153

Signed-off-by: Mark <remarkablemark@users.noreply.github.com>
remarkablemark added a commit to remarkablemark/typedoc-plugin-copy-code-to-clipboard that referenced this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality help wanted Contributions are especially encouraged
Projects
None yet
Development

No branches or pull requests

3 participants