I am a newbie to Lyx & Latex. For now, I have wasted a lot time in trying to make my text look like this but was unsuccessful. Hope you could give me some tips on how to achieve the look as you see in the attachment figure.
1) How to paste the console output into lyx without loosing the indentation ?
2) How to get those green comments beside the code ?
3) How to get that blue box with blue text inside ?