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

text highlighting #349

Closed
mrifni opened this issue Jul 8, 2020 · 8 comments
Closed

text highlighting #349

mrifni opened this issue Jul 8, 2020 · 8 comments

Comments

@mrifni
Copy link

mrifni commented Jul 8, 2020

Would you add support for text highlighting ?

@ueman
Copy link

ueman commented Jul 9, 2020

You mean like code highlighting?
I guess this would be overkill. You can easily write a custom renderer for a <code></code> block with your own syntax highligting. There are a few packages for that available.

@mrifni
Copy link
Author

mrifni commented Jul 10, 2020

i meant user be able to select and highlight text contents rendered within the html kind of like a browser.

@MickaelHrndz
Copy link

I need this functionality as well.
It would basically equates to replacing a Text() by a SelectableText().
It could take the form of a boolean parameter called selectable.

@ueman
Copy link

ueman commented Jul 11, 2020

This library doesn't use Text widget. It uses RichText widgets. As far as I know RichText doesn't support selectable text.

@MickaelHrndz
Copy link

I meant it more as an analogy, but actually if this helps :
Selectable has a named constructor for rich text : SelectableText.rich()

@tobacodes
Copy link

Please this functionality is really needed.

@MickaelHrndz
Copy link

I just noticed that this issue is a duplicate of #169, which is the most upvoted issue on this repo.

@ryan-berger
Copy link
Collaborator

Yes, this is a duplicate of #169. I will be taking a harder look at this over the next coming week to see how hard it would be to implement. I'll be closing this because it is a duplicate

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

5 participants