Please insert hardcopy in the PB IDE

Working on new editor enhancements?
Rudy M
User
User
Posts: 44
Joined: Fri Aug 23, 2024 1:18 pm

Please insert hardcopy in the PB IDE

Post by Rudy M »

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?
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Please insert hardcopy in the PB IDE

Post by Quin »

Rudy M wrote: Fri Feb 07, 2025 5:31 pm Therefore the question: Is there no possibility to build this function into the IDE?
I don't see why not, PB does have a Printer library built into it :)
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Please insert hardcopy in the PB IDE

Post by Paul »

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
Image Image
Rudy M
User
User
Posts: 44
Joined: Fri Aug 23, 2024 1:18 pm

Re: Please insert hardcopy in the PB IDE

Post by Rudy M »

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.
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Please insert hardcopy in the PB IDE

Post by AZJIO »

Rudy M wrote: Sat Feb 08, 2025 8:52 amGeany
For Geany
I made a code highlight from an asm lexer
filetypes.PureBasic (Geany)
Notepad++ PureBasic Lexer Black
Rudy M
User
User
Posts: 44
Joined: Fri Aug 23, 2024 1:18 pm

Re: Please insert hardcopy in the PB IDE

Post by Rudy M »

@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" :D )
PBJim
Enthusiast
Enthusiast
Posts: 294
Joined: Fri Jan 19, 2024 11:56 pm

Re: Please insert hardcopy in the PB IDE

Post by PBJim »

Rudy M wrote: Fri Feb 07, 2025 5:31 pm Therefore the question: Is there no possibility to build this function into the IDE?
Hi Rudy, it would be good even to have just Export to PDF. We could do whatever we desire with the output.

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. :D
Rudy M
User
User
Posts: 44
Joined: Fri Aug 23, 2024 1:18 pm

Re: Please insert hardcopy in the PB IDE

Post by Rudy M »

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?
Rudy M
User
User
Posts: 44
Joined: Fri Aug 23, 2024 1:18 pm

Re: Please insert hardcopy in the PB IDE

Post by Rudy M »

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.
User avatar
Skipper
User
User
Posts: 40
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Re: Please insert hardcopy in the PB IDE

Post by Skipper »

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

Re: Please insert hardcopy in the PB IDE

Post by Paul »

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.
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?
Image Image
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Re: Please insert hardcopy in the PB IDE

Post by zikitrake »

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.
Works fine here, in Windows 11 x64, PB6.20beta4 x64 :D
PB 6.21 beta, PureVision User
User avatar
Skipper
User
User
Posts: 40
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Re: Please insert hardcopy in the PB IDE

Post by Skipper »

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?
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).

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....
User avatar
Skipper
User
User
Posts: 40
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Re: Please insert hardcopy in the PB IDE

Post by Skipper »

Got it to work on my first machine as well, by removing the space in "Hard Copy.exe" and configure it anew.
Post Reply