This must have been answered before, but I simply cannot find the answer either here or elsewhere.
I edit a PHP file in gedit
, which is all nicely coloured for syntax.
But when I want to print it, it prints only in black-and-white.
How can I print it in colour? I will accept an editor other than gedit
if needed, because of bug 1313283.
I'd prefer a GUI option, please, partly because finding my printer's name for the command line is hard, and partly because I don't know how to set my printer's options from the command line (I think that its default mode is black-and-white).
I have discovered enscript
, but unfortunately it doesn't have PHP highlighting.
EDIT
I am using Ubuntu 14.04 64-bit and gedit
version 3.10.4.
I just went into one of my PHP files in gedit (Ubuntu 16.04). It does come up nicely color-coded. I then did ^P, selected an HP Photosmart C4100 series printer in the print dialog. All the color-coding printed beautifully. It worked painlessly for me. I hope this helps.
Will that printer print color from another application?