star office basic - macro - find number and paint background in certain colour

Hello!
Please ,how to write in Star office Basic macro which is painting background for certain number in the text?

Many thanks!

You are using the Writer?

What do you mean by “certain number”? Have you already tried to record a macro for your task?