Page 1 of 1

printing source program

Posted: Fri Feb 29, 2008 3:59 pm
by t57042
Hello,

I am brand new to PureBasic (working a lot with BCX before).
How can one make a hardcopy from a sourceprogram in the editor?
I do not see a print command under file.

Richard

Posted: Fri Feb 29, 2008 4:35 pm
by Rook Zimbabwe
And you are not the first to ask for this by a long shot!

Do this:
1. right click on your code and pick SELECT ALL
2. right click again and pick COPY
3. Open WordPad (line wrapping)
4. right click in the WordPad text panel and pick PASTE

On MAc / Linux variations of the above...
8)

Re: printing source program

Posted: Fri Feb 29, 2008 5:05 pm
by gnozal
t57042 wrote:How can one make a hardcopy from a sourceprogram in the editor?
I do not see a print command under file.
You could use jaPBe to print your code, so you also get the line numbers and the styles.

Posted: Sat Mar 01, 2008 5:10 pm
by t57042
Ok I installed JAPBE- it runs but gives an error when starting.
I have set the correct path for PB in the preference topic
I get subsystems: invalid filename
It adds \SUBSYSYSTEM\ after my path
When I restart the compiler it says: can't initialize compiler.
Then I get PBIDE reference file not found.


Richard

Posted: Sun Mar 02, 2008 6:51 am
by Rook Zimbabwe
@Gnozal... I didn't know you could print line numbers as well in JAPbe!!! Time to dust that off and see whats up! 8)

Posted: Mon Mar 03, 2008 10:44 am
by gnozal
t57042 wrote:Ok I installed JAPBE- it runs but gives an error when starting.
I have set the correct path for PB in the preference topic
I get subsystems: invalid filename
It adds \SUBSYSYSTEM\ after my path
When I restart the compiler it says: can't initialize compiler.
Then I get PBIDE reference file not found.
1. "Can't initialize compiler"
a. Is there any error message, like 'Cannot create PBCompiler process' in the info box?
b. Please add a '\' to the PB path in preferences
Known issues :
. PB 4.20 beta 2 has some MS VC++ 2005 dependencies (is the runtime installed on your PC ?)
. PB 4.20 beta 2 does not run on NT4.
2. About PBIDE reference file
jaPBe looks for Purebasic.prefs in :
- PB directory for PB4.00-PB4.02
- %APPDATA%\Purebasic\ for PB4.10-PB4.20 [#CSIDL_APPDATA] because of Vista
If your %APPDATA%\Purebasic\ is empty, simply copy your preference file to this directory.

Re: printing source program

Posted: Wed Dec 23, 2015 2:21 pm
by Golfy
It's not a ghost back from the past but it's the first time I see an IDE without printing command :shock:
Maybe, since 2008, it would be easier to add a print command ? thanks :wink:

Re: printing source program

Posted: Wed Dec 23, 2015 6:19 pm
by Bisonte
I'm honest. I ask me, why I should print out sourcecodes.

If I really in need of a printed code, so i can load it into notepad or similar and print it there...

BTW: Thousends of lines .... ink and paper ... I don't think I would ever do it spontaneous.

Re: printing source program

Posted: Wed Dec 23, 2015 9:29 pm
by Golfy
You're right, I'll not print on a printer but in PDF file !
Like this I can anotate my student's codes :lol:

However, I'm looking for another langage too... because I've to speak about object, about Java in the next teaching module... and the gap still important :?

Re: printing source program

Posted: Thu Dec 24, 2015 3:25 pm
by Paul
I use "Hardcopy" plugin for PureBasic when I need to print to Printer or PDF, etc.
Lets me do a CTRL-P right in the IDE

http://www.reelmedia.org/cgi-bin/PurePr ... ub=General

Re: printing source program

Posted: Thu Dec 24, 2015 3:57 pm
by ostapas