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

[Feature Request] Highlight Multiline Text #487

Open
Naatan opened this issue Mar 27, 2022 · 4 comments
Open

[Feature Request] Highlight Multiline Text #487

Naatan opened this issue Mar 27, 2022 · 4 comments
Labels
enhancement New feature or request External Issue Issue in dependencies - can't make progress in giu yet.

Comments

@Naatan
Copy link

Naatan commented Mar 27, 2022

Related problem

No response

Your request

I'd like to be able to highlight individual words / sentences within the rendered text of a InputTextMultiline field.

I've tried using imgui.PushStyleColor, but that did nothing. I assume this is intended for individual widgets.

Alternative solution

No response

Additional context

No response

@Naatan Naatan added the enhancement New feature or request label Mar 27, 2022
@gucio321
Copy link
Collaborator

Hi there!
could you provide more details about your use case?
what do you mean by "highlighting text"?

@AllenDang
Copy link
Owner

I think @Naatan means the Code Editor. Currently it is a Code Editor Widget but you will have to write your own syntax highlighter which is a bit complex.

@Naatan
Copy link
Author

Naatan commented Mar 28, 2022

I'm looking for something possibly a little less complex than the code editor with custom syntax highlighting. I'd like to be able to highlight different ranges within a multi line text field, which basically means coloring text manually by range.

Basically my use-case is similar to when you hit ctrl+f in your editor to search for strings; I want to be able to highlight text just like that.

image

@AllenDang
Copy link
Owner

@Naatan Current InputTextMultiline doesn't support to hightlight anything, and there is no easy way to implement it for now.

@gucio321 gucio321 added the External Issue Issue in dependencies - can't make progress in giu yet. label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request External Issue Issue in dependencies - can't make progress in giu yet.
Projects
None yet
Development

No branches or pull requests

3 participants