printing source program

Working on new editor enhancements?
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

printing source program

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

Post 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)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: printing source program

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

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

Post 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)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: printing source program

Post 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:
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: printing source program

Post 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.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: printing source program

Post 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 :?
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1252
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: printing source program

Post 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
Image Image
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: printing source program

Post by ostapas »

Post Reply