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

Colorized Macro Printing

Scheduled Pinned Locked Moved
Duet Web Control
2
3
178
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.
  • undefined
    DonStauffer
    last edited by DonStauffer 27 Apr 2024, 20:59

    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
    • undefined
      Phaedrux Moderator
      last edited by 29 Apr 2024, 00:22

      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

      undefined 1 Reply Last reply 1 May 2024, 05:45 Reply Quote 0
      • undefined
        DonStauffer @Phaedrux
        last edited by 1 May 2024, 05:45

        @Phaedrux I'm only using Word to print.

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