Please insert hardcopy in the PB IDE
Please insert hardcopy in the PB IDE
I think the PB IDE is a fantastic programming environment, but I think it's poor for a super modern IDE that we have not printing options to a printer.
Those who want to print in colors install another IDE that makes this possible, a utility to print in colors anyway, or they are forced to print it in black text on paper.
In other words, the lack of this function doesn't bring anything.
Isn't that crazy?
I know that some will mention the environmental aspect (trees - paper...), but all the paper I bought in Belgium in recent years was made from wood with the FSC or PEFC eco-label.
So what's the problem?
In addition, I only buy recycled paper, AND use it twice, namely, I cross out old listings diagonally with a pen and reuse them on the other side.
Therefore the question: Is there no possibility to build this function into the IDE?
Those who want to print in colors install another IDE that makes this possible, a utility to print in colors anyway, or they are forced to print it in black text on paper.
In other words, the lack of this function doesn't bring anything.
Isn't that crazy?
I know that some will mention the environmental aspect (trees - paper...), but all the paper I bought in Belgium in recent years was made from wood with the FSC or PEFC eco-label.
So what's the problem?
In addition, I only buy recycled paper, AND use it twice, namely, I cross out old listings diagonally with a pen and reuse them on the other side.
Therefore the question: Is there no possibility to build this function into the IDE?
Re: Please insert hardcopy in the PB IDE
I don't see why not, PB does have a Printer library built into itRudy M wrote: Fri Feb 07, 2025 5:31 pm Therefore the question: Is there no possibility to build this function into the IDE?

Re: Please insert hardcopy in the PB IDE
This was made about 16 years ago as an "add-on" tool for the PureBasic IDE and I still use it today.
A simple CTRL-P in the IDE and source is sent to the Printer or a PDF.
https://www.reelmedia.org/pureproject/a ... rdcopy.zip
A simple CTRL-P in the IDE and source is sent to the Printer or a PDF.
https://www.reelmedia.org/pureproject/a ... rdcopy.zip
Re: Please insert hardcopy in the PB IDE
Thanks Paul,
But its an exe-file and does not work in Linux. I even tryed it to lance via wine.
Now I'm searching a second editor to do the job, tested already with Geany and Notapad++ but got it not working.
I did also a test, copy my .pb file to .bas file and than open it in Geany, but I need to configure Geany for PureBasic.
Did not try to lance an editor from within PB IDE, thats for today.
So, to day I'm going to do some experiments.
But its an exe-file and does not work in Linux. I even tryed it to lance via wine.
Now I'm searching a second editor to do the job, tested already with Geany and Notapad++ but got it not working.
I did also a test, copy my .pb file to .bas file and than open it in Geany, but I need to configure Geany for PureBasic.
Did not try to lance an editor from within PB IDE, thats for today.
So, to day I'm going to do some experiments.
Re: Please insert hardcopy in the PB IDE
For Geany
I made a code highlight from an asm lexer
filetypes.PureBasic (Geany)
Notepad++ PureBasic Lexer Black
Re: Please insert hardcopy in the PB IDE
@Paul: Did already a test with PB example "printer", works good!
Also a good basefile to experiment and to work out, in my own listings.
@Azjio: Thanks I'm going to try out Your software / tips to do the job.
(Notepad++ looks as "luxe"
)
Also a good basefile to experiment and to work out, in my own listings.
@Azjio: Thanks I'm going to try out Your software / tips to do the job.
(Notepad++ looks as "luxe"

Re: Please insert hardcopy in the PB IDE
Hi Rudy, it would be good even to have just Export to PDF. We could do whatever we desire with the output.Rudy M wrote: Fri Feb 07, 2025 5:31 pm Therefore the question: Is there no possibility to build this function into the IDE?
We all have our preferences where management of our work is concerned. For myself, I obtain extra productivity when sitting in the café for a break during the day, to review existing code and make notes (yes, that's my break). If I could take a tablet and view the PDF, it would be marvellous.
This isn't just about paper printing, as printing can mean electronic printing, so you should not have to apologise for mentioning it.

Re: Please insert hardcopy in the PB IDE
I installed Notepad Next in Linux (Notepadqq does not work on Linux).
But at this moment You can not use it p.e. to compile.
There is already an option in the preferences to select for "Purebasic".
Works well, and you can also use the settings of the other languages for the PB listing.
I have been looking (also in de doc.) for where I can use the configuration file of Azjio, or from Notepad Next itself, but I have not found it.
(Searched in terminal via "Locate xxxxx....", I' looked in the hidden maps... )
Anyone have an idea?
But at this moment You can not use it p.e. to compile.
There is already an option in the preferences to select for "Purebasic".
Works well, and you can also use the settings of the other languages for the PB listing.
I have been looking (also in de doc.) for where I can use the configuration file of Azjio, or from Notepad Next itself, but I have not found it.
(Searched in terminal via "Locate xxxxx....", I' looked in the hidden maps... )
Anyone have an idea?
Re: Please insert hardcopy in the PB IDE
For Notepad Next I found a "NotepadNext.ini" file:
/home/rudy/.var/app/com.github.dail8859.NotepadNext/config/NotepadNext/NotepadNext.ini
2e Edit:
Finaly I have installed Kate (=KWrite) the Linux KDE editor.
There you can set an option to "Purebasic", to recognice the pb syntax....
And You have a lot of "color-theme's" to set a color system (light, dark...).
OK, not the same colors as in the PB IDE but works good.
/home/rudy/.var/app/com.github.dail8859.NotepadNext/config/NotepadNext/NotepadNext.ini
2e Edit:
Finaly I have installed Kate (=KWrite) the Linux KDE editor.
There you can set an option to "Purebasic", to recognice the pb syntax....
And You have a lot of "color-theme's" to set a color system (light, dark...).
OK, not the same colors as in the PB IDE but works good.
Re: Please insert hardcopy in the PB IDE
Trying to get it to work on Win11 with PB6.2b4 failed. Nothing happens when pressing CTRL-P, the same when running it as administrator.Paul wrote: Fri Feb 07, 2025 8:19 pm This was made about 16 years ago as an "add-on" tool for the PureBasic IDE and I still use it today.
A simple CTRL-P in the IDE and source is sent to the Printer or a PDF.
https://www.reelmedia.org/pureproject/a ... rdcopy.zip
Re: Please insert hardcopy in the PB IDE
Works fine here using that Windows/PureBasic setup.Skipper wrote: Tue Feb 11, 2025 11:35 pm Trying to get it to work on Win11 with PB6.2b4 failed. Nothing happens when pressing CTRL-P, the same when running it as administrator.
Sounds like you didn't view the ReadMe.txt file and set things up correctly under Configure Tools?
Re: Please insert hardcopy in the PB IDE
Works fine here, in Windows 11 x64, PB6.20beta4 x64Skipper wrote: Tue Feb 11, 2025 11:35 pm..Trying to get it to work on Win11 with PB6.2b4 failed. Nothing happens when pressing CTRL-P, the same when running it as administrator.

PB 6.21 beta, PureVision User
Re: Please insert hardcopy in the PB IDE
I checked everything once more, and it all matches your readme.txt as well as the enclosed readme.jpg bitmap perfectly. (my path to the tool is a bit different, but other than that, the rest is identical).Paul wrote: Wed Feb 12, 2025 12:19 am Works fine here using that Windows/PureBasic setup.
Sounds like you didn't view the ReadMe.txt file and set things up correctly under Configure Tools?
Note: this is on a x64 pc, where Win10Pro has recently been updated to Win11. Trying the same on another x64 Win11 laptop, everything works just fine....
Re: Please insert hardcopy in the PB IDE
Got it to work on my first machine as well, by removing the space in "Hard Copy.exe" and configure it anew.