Hard copy of Purebasic code
Re: Hard copy of Purebasic code
Use the scintilla documentation: http://www.scintilla.org/ScintillaDoc.html#Printing
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Re: Hard copy of Purebasic code
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
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
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: Hard copy of Purebasic code
Scintilla supports printing of text. http://www.scintilla.org/ScintillaDoc.html#Printing
Re: Hard copy of Purebasic code
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
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.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)
Re: Hard copy of Purebasic code
Uses Notepad++ (https://notepad-plus-plus.org/)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.
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
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
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
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=
http://forums.purebasic.com/english/vie ... highlight=
Re: Hard copy of Purebasic code
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
http://www.purebasic.fr/english/viewtop ... 5&start=15
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Hard copy of Purebasic code
I think Flype's work could form the basis of an official print button in the IDE.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.