How do a make a Search via script??

I have some Text Elements and i want the user of my programm to input a Word and then all similar words get marked in the text, like the monodevelop search.

Assuming you want something similar to the Ctrl/Cmd + F function, you’ll want to have a look at these methods/functions:

String.Split

Array.contains

Highlighting Text

Essentially the idea is to take every word in a piece of code or text document, split the words up as individual array objects (put them into an array) using String.Split, and then compare what the user has typed in the text input field to each of the array objects. This would be accomplished fairly easily with a for loop or foreach loop. Inside the if block, you would use the highlight method to highlight the text if there was a match (detected by Array.contains) between the user’s input and a word in the array.

Good luck with your project!