Hello, You can use the listings package ( Insert > Listings ).If you right-clic on the listing insert box, you can choose the language you use and the syntax will be highlighted. In the listings manual there are many options, so I suppose you can change the colors if you really want.
Hope it helps. Siegfried.