I want to printout one of my sketches

I can't seem to find out where the PRINT sketch function went to in IDE ver. 2.0.3 using Windows 10 !! In older version of the IDE, there was a command on the FILE dropdown to allow a sketch to be printed on a printer. I am a hardware person teaching myself programming using Arduino hardware and being able to print out sketches and sections of sketches is very helpful.
Hopefully, this feature is hidden somewhere in the IDE but right now, I need to highlight the code, send it to a word processor, and then print from there !! Again, something that used to be simple got IMPROVED and became annoying to implement.
Don't know if this even the right section of the forum to be posting this !!
Tom

It wasn't so I moved it

As to the print command, it is missing at the moment but is on the list of things to be added. In the meantime you can open sketch files with a text editor of your choice

Thanks for the quick reply !! Yeah, it just adds extra steps that in the past, I didn't need !!

You may be interested in this topic

1 Like

https://notepad-plus-plus.org/downloads/
Might be useful.

I note the print issue has come up several times. I'M new, and trying to learn coding. Within the comments several say it should NOT be necessary to print but I have to disagree. If you are familiar with what you are doing that's fine but for nebie, having something in front of you to read through can be helpful.
So the sooner a easy print function is available the better, For the old hand, well you can just ignore it.

1 Like

Not just newbies or noobies or noobs. Sometimes you gotta get away from the screen and scribble on real paper.

I do so less now, and I suppose the younger you are the stupider it seems, but certainly paper and good old pencils and pens (of many colours!) have a place.

I would say real paper is the beginning of anything I do, the napkin or envelope where a code riff is jotted.

a7

That is old-fashioned to simply work without starting an electric calculator to paint pictures.

Remember copying the code out of the magazine articles by hand. I was still little. I used to underline each line as I typed it so I could keep up with where I was.

Hi @exrn,

you may have a look at the software tool suggested by @Nick_Pyner in post #5.

I use Notepad++ since long as a separate editor for code or data and it supports syntax highlighting in lots of different languages including C++ as well as text folding.

There are even plugins available to compare sketches to mark changes or to display files in a HEX editor.

Good luck!

There were even magazines that published hex code to type into my CBM PET 2001 ... :wink:

1 Like

The last time I tried, the old fashioned cut-and-paste still worked to copy a program and put it into a word processor.

If that's too much work, you can right click your Arduino file and "Open With" whatever text editor you want.

1 Like

Of course, the PRINT function can always be put back into the IDE in a drop down menu !! Worked perfectly & easily EVERY TIME
without any extra manipulations !! Tom

If I had the ability I'd do it for you. I really would.

Unfortunately we'll have to wait for the Arduino folks and I really would hold my breath for a response there. In the meantime here are some easy work arounds.

It NEVER worked even close to "ok" for me (on a mac.) Ended up using some horribly large font and weird spacing.

In IDE 1.x, "Copy as HTML", paste into a .hrml file, and print using a browser... worked pretty good.

That's how I did the graphics for one of my projects. It was a set of huge digits for an LED matrix digital clock. I drew the digits on graph paper, as black and white squares for pixels. Then I took the pixels, four at a time, and converted from binary to hexadecimal. After that, when I got to the computer, all I needed to do was input the hexadecimal numbers I had written on the paper.

Thanks Paul, That's what I did in the end but it didn't give the line numbers. Ended up downloading 'notepad++' which was very easy to do, and then called the file from that.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.