Shop OBEX P1 Docs P2 Docs Learn Events
Printing and the Prop Tool — Parallax Forums

Printing and the Prop Tool

CannibalRoboticsCannibalRobotics Posts: 535
edited 2010-05-05 16:51 in Propeller 1
Is there a way to just print the actual text of the code without the background?
I've tried all of the print options (HP LaserJet 1022) and it seems like there is no way around getting all of the background in either color or greyscale.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.

Comments

  • Steph LindsaySteph Lindsay Posts: 767
    edited 2010-05-04 15:10
    Hmmm, what version of the Propeller Tool are you using? I recall a glitch in an earlier version a while back.

    I'm using v1.2.7 now. In the Propeller Tool, I select File > Print, then in the Tool's Print settings box I uncheck Syntax Print and Color Print. I didn't go into the Setup at the bottom of the dialog, and I'm printing to Adobe PDF at the moment. Unchecking the Syntax Print and Color Print don't work for you?

    You might also try going into Edit > Preferences (F5), and changing the Syntax Highlighting scheme to None on the drop-down menu. Then, if I do a File > Print and don't even bother unchecking the Syntax Print and Color Print boxes, I still get a black & white PDF.

    Please give these a try and let me know what happens, in case there's another bug I'm missing.

    Thanks much,
    -Steph
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2010-05-04 15:56
    I have experienced the same exact issue with versions 1.2.6 and 1.2.7r2 (the two versions on my two laptops). I have the problem with all printers I have tried (mainly my work printer, an HP 9500 color laserjet, and my home printer, an HP L7600 color inkjet). The text itself will have a white background, but anywhere there is blank paper space, the color coding for that section of code comes through.

    It seems to be an issue with the syntax print option. If you uncheck color print and syntax print, it works fine, but the code syntax is missing. However, with color print off and syntax print on, the white paper space around the code prints with the appropriate color for that section of the code.

    I have just learned to deal with it since I don't print much and the syntax differences are not tremendous, but it is odd. the zip attached has two prints, as described below.

    print-test-1.pdf = all print options checked except Color Print
    print-test-2.pdf = all print options checked except Color Print and Syntax Print


    last minute thought....... Could it be something to do with old installations of Propeller Tool? Even though I have version 1.2.7r2 on my work laptop, it is still pulling the library files and obvious option settings from the older versions folder. (IE: my font size in propeller tool can be changed in one and it will be reflected in the other). Should propeller tool be completely removed before installing a new version?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    WBA-TH1M Sensirion SHT11 Module
    Special Olympics Polar Bear Plunge, Mar 20, 2010
  • CannibalRoboticsCannibalRobotics Posts: 535
    edited 2010-05-04 16:00
    OK,
    Updated - I was a rev behind on that computer (oops!)
    With the File>Print selection's made it prints purely black and white regardless of the syntax setting scheme.
    As a suggestion for future versions, the color is really nice on the screen for boundaries between PUB/PRI and other blocks but it's ink and toner intensive in print mode. For black and white printing, perhaps a thin line all the way accross the page above each pub/pri statement.
    Anyway, thanks for the help.
    J-

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Signature space for rent!
    Send $1 to CannibalRobotics.com.
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2010-05-04 18:26
    Thanks for your detailed feedback. I'll make sure it gets to the right place.

    -Steph
  • VIRANDVIRAND Posts: 656
    edited 2010-05-04 18:43
    Try this idea.gif

    EDIT Select All, Copy
    START Programs Accessories Notepad
    EDIT Paste
    FILE Print
  • John R.John R. Posts: 1,376
    edited 2010-05-04 23:49
    VIRAND said...
    Try this idea.gif

    EDIT Select All, Copy
    START Programs Accessories Notepad
    EDIT Paste
    FILE Print

    Kind of defeats the purpose of an "IDE"...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.
    Click here to see my Nomad Build Log
  • VIRANDVIRAND Posts: 656
    edited 2010-05-05 09:56
    I'm very sorry for the miscommunication. I was suggesting a temporary solution.
    I am not employed by Parallax but I try to be helpful.
    I guess I tripped and my foot is in my mouth again. blush.gif
  • John R.John R. Posts: 1,376
    edited 2010-05-05 16:51
    No, you didn't trip, and your foot is not in your mouth.

    My comment was meant tongue in cheek, at least to some extent.

    Your suggestion was "spot on" as a short term fix.

    To be honest, I'm not a big fan of printing code. If you can't see it well enough to understand on the screen and in the IDE, then there is a very likely probabilty that your code structure needs some work. About the only time I print any code is as a snippet, and only then, as a reminder, or a place to jot a couple notes. Normally notes, etc., just go in as comments and cleaned out latter (if they ever get cleaned out).

    This isn't a matter of "going green", but a matter of if the code is hard to work with, something could usually be done better. If I have to spend all my time pouring over a printout, I'm better off doing some refactoring.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.
    Click here to see my Nomad Build Log
Sign In or Register to comment.