How can i change the color of a specific word in every instance across an impress document

i’m writing an impress document that contains C code, and i want to change the color of all instances where key words such as “while” and “for” to the color blue.
if any alternatives that help the comprehension of the text exist i would be glad to her them and thanks in advance.

I don’t see a good option in Impress, as there is no continuous text there. You could create individual text fields with different colors and line them up as if they were continuous text.
But that would be very prone to errors.

It also depends on the size of the text code. Is it just snippets of code or very long text passages one below the other?


For further questions, please also state your operating system and the version of LibreOffice you are using. Thank you very much.