It is currently Sat Jan 23, 2021 1:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: printing source program
PostPosted: Fri Feb 29, 2008 3:59 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 22, 2008 12:28 pm
Posts: 203
Location: Belgium
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 29, 2008 4:35 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 4327
Location: Cypress TX
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/


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Fri Feb 29, 2008 5:05 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
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).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 01, 2008 5:10 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 22, 2008 12:28 pm
Posts: 203
Location: Belgium
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Mar 02, 2008 6:51 am 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 4327
Location: Cypress TX
@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/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Mar 03, 2008 10:44 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
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).


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Wed Dec 23, 2015 2:21 pm 
Offline
User
User

Joined: Wed Mar 21, 2012 6:10 pm
Posts: 96
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:


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Wed Dec 23, 2015 6:19 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1151
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 5.72 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 64GB RAM | iChill GeForce RTX 2080 Super | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Wed Dec 23, 2015 9:29 pm 
Offline
User
User

Joined: Wed Mar 21, 2012 6:10 pm
Posts: 96
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 :?


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Thu Dec 24, 2015 3:25 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 1031
Location: Canada
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/PureProject.exe?query=Archive&arc=Applications&sub=General

_________________
Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: printing source program
PostPosted: Thu Dec 24, 2015 3:57 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Feb 18, 2010 11:10 pm
Posts: 192
Or this one viewtopic.php?f=14&t=53437


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye