In the actions panel, bring up the panel drop down, and
select Print.
I believe this holds the formatting, color included if your
printer can print it.
One caveat, if the line of code is wider than your printable
space, it will not word-wrap, instead it will just get cut off.