Print Source Code from PureBasic IDE

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Print Source Code from PureBasic IDE

Post 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 :)


Image
Image Image
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post 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.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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

8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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)
Last edited by Paul on Thu Aug 27, 2009 5:36 am, edited 1 time in total.
Image Image
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post by X »

Paul ... this is awesome! Thank you for sharing this with us.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post 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.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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)
Image Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Very handy and results are slick and professional, thanks for sharing this. It's really good work. 8)
BERESHEIT
User avatar
Cruster
User
User
Posts: 96
Joined: Fri Jan 23, 2004 12:05 am

Re: Print Source Code from PureBasic IDE

Post 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?
PureBasic 4.3 registered user
Post Reply