How can I print PHP syntax highlighting on a colour printer?

Paddy Landau

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.

James Leigh Smith

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?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I force my printer to print in black when it can't recognize 2 colour cartridges?

From Dev

How can I display syntax highlighting on a file?

From Dev

How can I print JasperPrint directly to printer?

From Dev

How can I print to an actual printer?

From Dev

How can I print JasperPrint directly to printer?

From Dev

How can I print an R macro in Markdown in colour?

From Dev

How can I add a "::" operator to my VIM syntax highlighting file?

From Dev

How can I enable syntax highlighting in a Python file without an extension?

From Dev

How can I properly group user defined variables for syntax highlighting?

From Dev

How can I tell Gedit which syntax highlighting to apply?

From Dev

How can I use JavaPOS to print reciepts with an Epson printer?

From Dev

how can I print from a different subnet than the printer?

From Dev

How can I copy a print file to a networked printer?

From Dev

How can I easily set up a Google Cloud Print printer?

From Dev

How many pages can I continuously print without damaging the printer?

From Dev

Can I set a default syntax highlighting in Gedit?

From Dev

Can I set a default syntax highlighting in Gedit?

From Dev

How do I get HTML syntax highlighting inside PHP strings & heredoc syntax?

From Dev

Sublime colour syntax highlighting using regex

From Dev

How do I nest syntax highlighting in Vim?

From Dev

How do I enable syntax highlighting in nano?

From Dev

How do I enable syntax highlighting in nano?

From Dev

How do I enable syntax highlighting in nano?

From Dev

How should i remove printer image on print?

From Dev

How can I teach vim about additional C language types for syntax highlighting?

From Dev

How can I automatically convert all source code files in a folder (recursively) to a single PDF with syntax highlighting?

From Dev

How can I make vim use html and markdown syntax highlighting on the same file?

From Dev

How can I run the syntax-highlighting.sh command for cgit to check it works properly?

From Dev

How can I get react code to display with the proper syntax highlighting in Sublime?

Related Related

  1. 1

    How can I force my printer to print in black when it can't recognize 2 colour cartridges?

  2. 2

    How can I display syntax highlighting on a file?

  3. 3

    How can I print JasperPrint directly to printer?

  4. 4

    How can I print to an actual printer?

  5. 5

    How can I print JasperPrint directly to printer?

  6. 6

    How can I print an R macro in Markdown in colour?

  7. 7

    How can I add a "::" operator to my VIM syntax highlighting file?

  8. 8

    How can I enable syntax highlighting in a Python file without an extension?

  9. 9

    How can I properly group user defined variables for syntax highlighting?

  10. 10

    How can I tell Gedit which syntax highlighting to apply?

  11. 11

    How can I use JavaPOS to print reciepts with an Epson printer?

  12. 12

    how can I print from a different subnet than the printer?

  13. 13

    How can I copy a print file to a networked printer?

  14. 14

    How can I easily set up a Google Cloud Print printer?

  15. 15

    How many pages can I continuously print without damaging the printer?

  16. 16

    Can I set a default syntax highlighting in Gedit?

  17. 17

    Can I set a default syntax highlighting in Gedit?

  18. 18

    How do I get HTML syntax highlighting inside PHP strings & heredoc syntax?

  19. 19

    Sublime colour syntax highlighting using regex

  20. 20

    How do I nest syntax highlighting in Vim?

  21. 21

    How do I enable syntax highlighting in nano?

  22. 22

    How do I enable syntax highlighting in nano?

  23. 23

    How do I enable syntax highlighting in nano?

  24. 24

    How should i remove printer image on print?

  25. 25

    How can I teach vim about additional C language types for syntax highlighting?

  26. 26

    How can I automatically convert all source code files in a folder (recursively) to a single PDF with syntax highlighting?

  27. 27

    How can I make vim use html and markdown syntax highlighting on the same file?

  28. 28

    How can I run the syntax-highlighting.sh command for cgit to check it works properly?

  29. 29

    How can I get react code to display with the proper syntax highlighting in Sublime?

HotTag

Archive