I apologize for the mistake of writing.
I repeat the example.
I mean colored background, for example, the following:
line1
line2 word1 word2 (line2, word2 background yellow)
line3
line4 word3 word4 (line4, word4 background green)
should become
line2 word1
line4 word4
.