Page 1 of 1
Print Source Code from PureBasic IDE
Posted: Wed Aug 26, 2009 12:11 am
by Paul
Here is a little tool I use to print hard copies of my source code from the PureBasic IDE...
http://www.reelmedia.org/pureproject/ar ... rdcopy.zip
Simply add it as a tool to the IDE and you can quickly print using CTRL-P
Setup instructions are in the ZIP file.
Hope others find it useful

Posted: Wed Aug 26, 2009 3:28 am
by yrreti
Thanks for sharing this Paul
Very nice job!
Your program works really good. I especially like the professional header
your program prints too. That helps in quickly finding the source when
mixed in with other papers.
The only thing I think could be added is possibly being able to change the
font size. For me it's fine, but some may want a larger letter size.
Again, thanks very much for sharing.
Posted: Wed Aug 26, 2009 10:35 pm
by Rook Zimbabwe
Great Idea... I am gonna test it on my POS program...
When I cut and paste into WORD takes about 180 pages!!! 11pt type

Posted: Thu Aug 27, 2009 12:17 am
by Paul
Just posted an update (v2.00) which allows you print the entire source code that is loaded in the IDE or only the rows that are selected with the cursor.
This is good if you only what a hard copy of small snippits from larger programs.
Overwrite the old version of "Hard Copy" with this new one and change the arguments from
"%TEMPFILE" "%FILE"
to
"%TEMPFILE" "%FILE" %SELECTION
Instructions are in the ZIP file.
(also a small hidden feature, if you start the file with no parameters or double click the EXE to start, you will be able to customize some of the options)
Posted: Thu Aug 27, 2009 12:17 am
by X
Paul ... this is awesome! Thank you for sharing this with us.
Posted: Thu Aug 27, 2009 3:45 am
by Flype
hi paul, seems good. i also like the header.
i made a tool recently to print colored source.
viewtopic.php?t=38375&start=0&postdays= ... highlight=
source code is provided (blue link).
you can use it if you want to implement syntax hilighting.
Posted: Thu Aug 27, 2009 4:39 am
by Paul
Nice work also Flype! It's always good to have a variety of options when needing to perform various tasks.
Speaking of which... just updated "hard Copy" to version 2.00
(made it easier to customize some of the options)
Posted: Sun Aug 30, 2009 3:42 pm
by netmaestro
Very handy and results are slick and professional, thanks for sharing this. It's really good work.

Re: Print Source Code from PureBasic IDE
Posted: Thu May 21, 2020 11:24 am
by Cruster
Very useful! I know the thread is over ten years old..... but.... is it possible to adjust the program so that it prints out wider than the 80 columns it appears to currently be fixed at?