Assuming you're using the internal HeidiSQL editor to edit a function or procedure:
It would be nice to highlight all identical words/ phrases in the current editor if you mark a word or phrase, similar to notepad++. See example screenshot attached.