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 & paste of code not working #17

Closed
Rossi1337 opened this issue Jun 1, 2024 · 5 comments
Closed

Copy & paste of code not working #17

Rossi1337 opened this issue Jun 1, 2024 · 5 comments
Assignees
Labels
Type: Bug Something isn't working

Comments

@Rossi1337
Copy link
Collaborator

When the response contains code snipptets or code references these are formatted. This is nice. But you cannot select the code parts to copy from the code.

@WilliamKarolDiCioccio
Copy link
Owner

WilliamKarolDiCioccio commented Jun 1, 2024

Its a problem I've been facing since the beginning and still don't know how to get around it. Give me the time to recover some resources I found on the problem, I'll leave the links here

@WilliamKarolDiCioccio WilliamKarolDiCioccio added the Type: Bug Something isn't working label Jun 1, 2024
@WilliamKarolDiCioccio
Copy link
Owner

This issue from the highlight.dart repository (one of the subpackages of flutter_highlighter, the one responsible for the problem) shows that there is a pull request to add the functionality waiting for approval since long ago. Now, I found a fork from a user that seems to be implementing the changes. I forked it on my own and I'm testing it in the new branch. If you want you too can experiment with it

@WilliamKarolDiCioccio
Copy link
Owner

I almost destroyed the entire tree 😨! Tomorrow I'll finish fixing other small problems related to markdown code widget and merge

@WilliamKarolDiCioccio WilliamKarolDiCioccio self-assigned this Jun 2, 2024
@WilliamKarolDiCioccio
Copy link
Owner

WilliamKarolDiCioccio commented Jun 2, 2024

If you can do some research on text selection across widgets as my fix doesn't cover this issue therefore we cannot select code and other text as a single text block but rather we have to do it separately

WilliamKarolDiCioccio added a commit that referenced this issue Jun 2, 2024
@WilliamKarolDiCioccio
Copy link
Owner

Fixed the issue and correctly added submodule. Closing this as complete and opening #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants