#Highlighted text doesn't update on text edit

15 messages · Page 1 of 1 (latest)

edgy tiger
#

Hello, I'm trying to implement a SyntaxHighlighter in a way that in fine will permitted me to switch the highlighted text from one variable to an other in a word like text editor. At the moment I managed to highlight the text but as soon as I edited the text before the highlighted region everything seems to crumble. Note that the HighlightRegion is updated correctly in most case but that visualy it didn't follow when I added text before it or use the dell key (the strangest of all being that pressing backspace with the caret before the HilghlightRegion work perfectly)

crisp spire
#

send the whole project if you can.

edgy tiger
crisp spire
#

which version of Godot are you using?

edgy tiger
#

4.1.1 Stable

crisp spire
#

nice

#

how can you highlight the text?

#

do you mean just selectin the text?

edgy tiger
#

Nope you can right click on text and select Create HilghlightRegion

crisp spire
#

ok

#

I see the issue now

#

man, so annoying

edgy tiger
#

i know i have been sinking my teeth into it for at least a week and a half and couldn't figure out what i was doing wrong

crisp spire
#

could this be a bug in the editor?

edgy tiger
#

i honestly don't know