Possible Duplicate:
Saving a notebook as PDF, preserving syntax highlighting
I would like to export my notebook code in a colored PDF form. What I do is select the brace in the right side of the lines I'd like to export and then from "File->Save Selection As" I export it as pdf. The thing is that there aren't any colors.

Is there a way to export in PDF while adopting all colors?
EDIT: I also tried "Print Selection" instead of "Save selection As" but I faced to problems: The is a lot of empty space, which means that I will not be able to include it in my tex code and secondly there aren't any colors in my input code, while the output graphic really adopts color. My output is







