nikunj . schrieb:
I could do it. Include the package 'color' in preamble, i.e. add \usepackage{color} in the preamble. (Document->settings->latex preamble) After that go to tex mode/ERT (ctrl-L on windows ) and write " \colorbox{green}{the text} " within the ERT. More info at http://en.wikibooks.org/wiki/LaTeX/Colors
For more info look at sec. 5.7 "Colored Boxes" of the EmbeddedObjects manual that you find in LyX's Help menu.
regards Uwe