Page 2 of 2
Re: Hard copy of Purebasic code
Posted: Sat Mar 05, 2016 7:30 pm
by ts-soft
Re: Hard copy of Purebasic code
Posted: Sat Mar 05, 2016 10:39 pm
by Lunasole
Never needed to print code, but I think you can make simple x-platform util this way:
1. Send selected text from IDE to your tool (it is possible by tool command line or Scintilla commands)
2. In your tool use example from "Purebasic\SDK\Syntax Highlighting" to highlight PB code (if you need colored printing)
3. Print results using Printer library
Re: Hard copy of Purebasic code
Posted: Sun Mar 06, 2016 11:28 am
by User_Russian
Re: Hard copy of Purebasic code
Posted: Mon Mar 07, 2016 5:14 am
by Neil
To print a file I just open the file in my text editor (in my case PSPad - an excellent freeware editor - color formatting etc)
Re: Hard copy of Purebasic code
Posted: Mon Mar 07, 2016 11:34 am
by RNBW
Neil wrote:To print a file I just open the file in my text editor (in my case PSPad - an excellent freeware editor - color formatting etc)
Much better than copying and pasting. However, I couldn't find a way to have colour formatting. Purebasic isn't one of the standard languages that would allow you to do this. PSPad is indeed an excellent freeware editor.
Re: Hard copy of Purebasic code
Posted: Mon Mar 07, 2016 11:58 am
by Marc56us
I couldn't find a way to have colour formatting. Purebasic isn't one of the standard languages that would allow you to do this. PSPad is indeed an excellent freeware editor.
Uses Notepad++ (
https://notepad-plus-plus.org/)
Notepad++ is based on Scintilla component like PB so it's easy to use (some) shortcuts
For color formatting:
- Setting > Style configurator > use "AutoIt" as base (autoit use basic syntax)
- Change others style same as PB
- Click Save and close

Re: Hard copy of Purebasic code
Posted: Tue Mar 08, 2016 12:06 am
by RNBW
After looking at the various options, i think that the solution below is probably about the best. There are others covered by the link provided by IdeasVacuum, but i couldn't get any of them to print in colour.
http://www.purebasic.fr/english/viewtopic.php?t=38783
It is possible to link Notepad++ or PSPad from the Tools menu, which is slightly quicker than copying and pasting. Again, these don't print totally in colour so there is no great adavantage.
Purebasic is a very good piece of software, but I think it is let down by not being able to print out its code directly from its editor.
__________________________________________________
Link repaired
08.03.2016
RSBasic
Re: Hard copy of Purebasic code
Posted: Tue Mar 08, 2016 11:31 am
by RNBW
I've had another look at PureBasicPrint. Although I couldn't get it to print in colour, it does have its advantages in that you can get at its source code and there is also a useful Microsoft Word file that shows how to configure it, including inserting a VERY useful printer icon on the Toolbar.
http://forums.purebasic.com/english/vie ... highlight=
Re: Hard copy of Purebasic code
Posted: Tue Mar 08, 2016 12:11 pm
by RNBW
You may have difficulty getting a download link for PureBasicPrint. Vera kindly provided a link at:
http://www.purebasic.fr/english/viewtop ... 5&start=15
Re: Hard copy of Purebasic code
Posted: Tue Mar 08, 2016 12:40 pm
by IdeasVacuum
I think Flype's work could form the basis of an official print button in the IDE.