GLBasic forum

Feature request => IDE/Syntax => Topic started by: Hark0 on 2011-Mar-09

Title: Print source code list in color...
Post by: Hark0 on 2011-Mar-09
Hi!

I would like to propose an optional feature for the print section.

Currently, when sending a print source code, it displays black and white text. I tried to print a color printer (and also a PDF file) but does not show the font colors, etc ...

Would it be possible to add the option to print listings in colors as shown in the IDE?

Thanks in advance.

 ;)
Title: Re: Print source code list in color...
Post by: Kitty Hello on 2011-Mar-09
Print!? Like: Real paper!?
That's one interesting thing.
Title: Re: Print source code list in color...
Post by: Leginus on 2011-Mar-09
Real paper??  Whats that?
Isnt that what brontosaurus ate??    :whistle:
Title: Re: Print source code list in color...
Post by: doimus on 2011-Mar-09
Useless offtopic trivia time!

Want to know what's the most expensive liquid on planet Earth?
Oil? Blood?
No! Printer ink.

Carry on...

[But color printing to PDF could be useful for tutorials etc.]
Title: Re: Print source code list in color...
Post by: Moru on 2011-Mar-09
If you have to print in color, see my quick-fix:

GLBasic code coloring tool (http://bjornrosenthal.eu/geshi/form.php)
Title: Re: Print source code list in color...
Post by: Hark0 on 2011-Mar-10
If you have to print in color, see my quick-fix:

GLBasic code coloring tool (http://gamecorner.110mb.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=13&cntnt01origid=51&cntnt01returnid=68)

Thanks for this form-web mini tool  =D ;)

Title: Re: Print source code list in color...
Post by: Hark0 on 2011-Mar-10
Print!? Like: Real paper!?
That's one interesting thing.

Yes!

I'm from old school... you know... I use pen and marker for unbug my code source :)


And.... if text are colored for printer.... are colored for PDF or another kind of virtual printer...
Title: Re: Print source code list in color...
Post by: Moru on 2011-Mar-10
I'm also old-school programmer but I stopped with paper when I stopped with RPG400 on form-paper :-) Did you try my code-coloring tool?

(http://dl.dropbox.com/u/8773118/rpg400.png)
(Screenshot from some IBM manual, the manual we had at school filled a one meter broad shelf...)
Title: Re: Print source code list in color...
Post by: Hark0 on 2011-Mar-11
I'm also old-school programmer but I stopped with paper when I stopped with RPG400 on form-paper :-) Did you try my code-coloring tool?

(http://dl.dropbox.com/u/8773118/rpg400.png)
(Screenshot from some IBM manual, the manual we had at school filled a one meter broad shelf...)

Yes! I tried your tool and works fine! ;)

(I prefer edit/read/fix my source codes every X version evolution in paper.... not many ecologic.... but... my source code have more than 15 DIN A3 pages....)
Title: Re: Print source code list in color...
Post by: Hark0 on 2013-Jul-17
If you have to print in color, see my quick-fix:

GLBasic code coloring tool (http://gamecorner.110mb.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=13&cntnt01origid=51&cntnt01returnid=68)

Hello @Moru... Do you have a offline version of this tool?

TIA, ;)
Title: Re: Print source code list in color...
Post by: mentalthink on 2013-Jul-17
For a patch solution, if you make a copy /paste and put into of Notepad++ 2
Here a guy tolds, Notepad can print in Colour...

Title: Re: Print source code list in color...
Post by: Hark0 on 2013-Jul-18
For a patch solution, if you make a copy /paste and put into of Notepad++ 2
Here a guy tolds, Notepad can print in Colour...

 :good: Perfecto!
Title: Re: Print source code list in color...
Post by: mentalthink on 2013-Jul-18
Bueno es una chapuza, pero cuando programes el spectrum no le pidas a la impresora colores XD XD
Title: Re: Print source code list in color...
Post by: Hark0 on 2013-Jul-19
Bueno es una chapuza, pero cuando programes el spectrum no le pidas a la impresora colores XD XD

Jejejeje!

Larga vida al ZX! ;)
Title: Re: Print source code list in color...
Post by: Moru on 2013-Aug-14
If you have to print in color, see my quick-fix:

GLBasic code coloring tool (http://gamecorner.110mb.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=13&cntnt01origid=51&cntnt01returnid=68)

Hello @Moru... Do you have a offline version of this tool?

TIA, ;)

It has now been converted for the forums so just paste into a forums post and preview :-)
I don't have an offline version since it's written in PHP.
Title: Re: Print source code list in color...
Post by: Hark0 on 2013-Aug-14
The link don't work for me... :S
Title: Re: Print source code list in color...
Post by: Moru on 2013-Aug-14
You don't need the link, just paste the code into the forum editor with (code=glbasic)(/code) blocks around it (square brackets, not round).

Code: GLBasic [Select]
// example test
FOR x = 0 TO 10
    a$ = a$ + x
NEXT
 

The old link does not work because I'm tired of fighting with that lousy 110mb.com "free" homepages. I payed for it but it took them 5 month to get it running when they first managed to kill it. Still waiting for it to come up again after the last problem. Now my own server is having troubles reaching internet between 7 and 21 the whole week because of the state is redoing all the fiber-welds thru the whole county. Don't ask me why they think redundancy can't work with four fiber-pairs and welding one pair at a time...
Title: Re: Print source code list in color...
Post by: mentalthink on 2013-Aug-14
@Moru your link doens't works, at least this night, I don't know if you delete the file or your server don't want me ear =D

PS: Ony it's for advice I don't know if use your tool but perhaps something files move into the Server...  :good:
Title: Re: Print source code list in color...
Post by: Moru on 2013-Aug-15
I know the link does not work. I haven't bothered restoring it since the forum can do this automatically now :-)
Title: Re: Print source code list in color...
Post by: mentalthink on 2013-Aug-15
Ok Moru thanks for the info...
Title: Re: Print source code list in color...
Post by: Hark0 on 2013-Aug-16
Ooops!

Understand @moru... :P ;)

Thanks!