-
Notifications
You must be signed in to change notification settings - Fork 200
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
Button
#572
Comments
Adding a way to copy the code is something that would need to be done in the IDE extension (Dart-Code/Dart-Code#4939). There's nothing specific to do here in the markdown package besides the existing request for offsets/lengths in parsed results (#369). (I think we should close this as a dupe of those issues) |
This exists on pub.dev, I don't see how it's related to markdown parsing. If you're suggesting it be done in generated documentation, that's an issue for dartdoc. We did on pub.dev using javascript to find the code tags that should have a copy button added. |
The request here was about allowing it in the IDE (eg. code blocks inside doc comments can easily be copied). To do this, we need to reliably know the offset/lengths of the code blocks within the doc comments (while we could approximate this with regex, it should really be done with real parsing). |
Please add a button to
copy code
in code spans in markdown documentation comments.Like the following:
Also open here.
The text was updated successfully, but these errors were encountered: