Printing capabilities

Hi,
I am using version 1.8.8.

I have not been able to print the sketches in color.
When I print a sketch, the left margin is tiny... no room to three-hole-punch w.o chomping out details.
When I print a sketch, there are no line numbers.
The only way I have been able to change print font size is to go into preferences and change the IDE font size.

Is there a control panel where some or all of these capabilities can be adjusted and/or selected?

Have they been left out for some strategic or logical reason that you are willing to disclose?

My reasons for asking for these things all revolve around documenting code and training in debug practices.

If some of these are being worked on, may I know when and what beta versions to download?

thanks very much
Tim Miner

As for color and probably the margin too, there is a workaround:

  • (in the Arduino IDE) Edit > Copy as HTML
  • Paste the copied file into a text editor.
  • Save the file containing the pasted HTML with a filename ending in .html
  • Open the saved file in your web browser.
  • Use the web browser's print functionality to print the rendered sketch.

As for being worked on, I would guess that the Arduino Pro IDE will eventually have this capability, but it doesn't appear to have it at this time.

T_Miner:
I have not been able to print the sketches in color.

There must be very few occasions when programmers bother to print code on paper. I can't remember when I last did so.

...R

I have created a Arduino IDE "plugin"

that makes it possible to print in color with or without line numbers.

It also prints in Black & White with or without line numbers.

available at

GitHub - manicken/arduinoExtendedPrint: Arduino IDE extension that makes it possible to print code in color and with or without line numbers

Nice. Well, it's a start, anyway. printing definitely needs its own "themes" and font/fontsize collection.

I thank you all for responding to my post. Microsan, wonderful. Pert, thanks for a nice easy work a round.

best regards to all
Tim Miner