Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Colorized Macro Printing

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    3
    177
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DonStaufferundefined
      DonStauffer
      last edited by DonStauffer

      I discovered something I thought I'd mention in case it's useful for someone.

      I had been downloading a macro, then opening it in MS word, and going through and using styles to color code syntax manually. Not a huge big deal for most macros, and it made it more readable. But if you try to print in the web control, you only get the visible code. If the macro is longer than will fit, you'll get multiple pages of the same portion of the code!

      Then it occurred to me to go into the macro in the Web Control editor, do Ctrl-A to highlight the whole macro, Ctrl-C, then paste it into a new Word document, in the hopes of carrying the HTML formatting through the clipboard. Well, it worked, and the added advantage is it will be the same color coding as used in the web control. I haven't tried it in dark mode, and I suspect it wouldn't be so good. But it sure is easier than manually formatting.

      I hope this is helpful.

      1 Reply Last reply Reply Quote 1
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        I might suggest trying a text editor with syntax highlighting rather than word. Something like Notepad++ or SublimeText. I wouldn't trust Word to not mangle a plaintext file.

        Z-Bot CoreXY Build | Thingiverse Profile

        DonStaufferundefined 1 Reply Last reply Reply Quote 0
        • DonStaufferundefined
          DonStauffer @Phaedrux
          last edited by

          @Phaedrux I'm only using Word to print.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA