G Code 3d Printing

0 views
Skip to first unread message

Kaskuser Kiss

unread,
Aug 5, 2024, 5:06:03 AM8/5/24
to nistfandoychoa
Ihave occasion to need to print code (Horrors!!! ;) ), and i was wondering what editor or tool would i use to print that code out with proper formatting and syntax highlighting? If it's important, it will be c# code but ideally the tool will work for as many languages as possible. Can Notepad++ or something handle this?

:syntax will turn syntax highlighting on and :hardcopy will print it. There's syntax highlighting definitions for many languages out there. The default look is usually optimised for screen display, but you can fix that.


Colour printing would obviously be preferable, but on the occasions when I've printed in black and white, the subtle differences in colour [rendered as shades of grey, of course] can be difficult to distinguish.


There are many ConTEXT syntax highlihting definitions to download and you can make your own highligher file which will BTW be highlighted using the ConTEXT Highlighter Files highlighter definition.


There are so many 5-7 options to select the theme and language highlighter. Once you select a theme and download the tiny js/css files the next thing you need to do is rename the code file to html, and call the css/js files. Open the html in a browser and print it. Done!


The set up was not correct. Office department print codes are to be used for color printing. When the codes were set up the representative did not check off for color printing. The correction has been made and is printing in color at last.


I am unable to print from this laptop. This happened after I upgraded to Windows 11. I'm assuming I need to update my drivers, but don't know how to do this on this new OS. I have installed the Print & Scan doctor and it hasn't solved my problem. Please help.


I am not getting any error messages. The printer starts printing lines of code and I have to manually cancel the print job on the printer, as it continues printing page after page, even if I only print a ONE page file. Please help. Thanks.


Risograph printing is an economical and environmentally friendly way to produce books, cards, envelopes, posters and all kinds of printed matter. The Riso is designed to bridge the gap between digital laser printing and offset printing by handling run lengths that are too long for copiers or laser printers and too short for offset presses. The Riso uses soy-based inks and stencils/masters made of natural fiber to create spot colour prints quickly and affordably.


Risographs use oil based inks in a variety of colours, designed specifically for the machines. We stock over 20 colours to choose from. Colours can be used in combination with transparency and overprinting techniques. Note that fluorescent colours and metallics do not display on computer screens. To see colours accurately purchase our Risograph swatchbook


Smudging: Risograph ink is made from a combination of soy-oil, water and pigment. Only some types of paper are suitable for printing with the Riso and the prints will always retain a newspaper like quality - with enough effort you will find that the ink can smudge and rub off onto your finger tips.


Roller marks: Heavy ink coverage in a print can often result in marks when printing successive layers or on the reverse side of the press sheet. The Riso feeds paper using a set of rubber tires that travel across the center of the sheet. When feeding paper that has already been printed this can often result in track marks on the lead edge of the sheet.


Uneven ink coverage: The Risograph creates prints using a rubber roller which presses the sheet of paper against the print drum as it spins. The speed of printing and surface of the roller do not create perfect impressions. Large flat areas of ink coverage can sometimes appear slightly uneven.


Registration & Trapping: Risographs are designed for simple 1 or 2 colour graphics. To get the best results when printing more complex artwork, it is important to include trapping. Trapping is the process of adding overlap between colours that interact in order to avoid gaps or white spaces in case of misregistration. If you have any questions or need help adding trapping we're happy to do so.


In order to take your project to print, please provide high-res greyscale pdfs for each layer of colour to be included in your project. Include between 1/8" - 1/4" bleed as well as a low resolution colour mockup. For book projects, we can also work from an Indesign layout. Text and solid lines should be prepared as bitmaps or vectors otherwise the Riso will attempt to apply a halftone pattern to them in print. For vector, please make sure that text is outlined. If you need any assistance with setting up your files for print, we're here to help!


It usually indicates that the code is too complicated and needs refactoring, so in the first instance having something to scribble on helps find and fix the problem and then it helps work out where the code should be split.


At Uni, I used to regularly print my code on green bar paper, it is amazing how well you get a physical sense of how deep and convoluted your code is when you look at it on paper. We're (at least as of today) still mentally imprinted from our Elementary school days on reading pages and how much each page can represent. It puts a good complexity metaphor to computer code.


occasionally you may need to have a close look at some code (usually new to you) where you essentially need to see a lot at the same time. Then a printout can be invaluable for you to be able to look at the whole thing at one time.


Sometimes I print it to read on the train and make notes. When I get stuck, I like to spread it out over a table in a quiet conference room. Not sure if it really helps, but it's a nice change of pace.


Another One: Found some old code that was a multi-nested If/Then statement that wouldn't fit on the screen. They should have fired the former programmer who wrote that, but then I'd be out of a job ;)


I only print out code in order to do a peer review of the code. Doing the review offline is in my opinion more efficient than doing it on a computer with all the disturbing (yet sometimes helpful) IDE stuff.


The usual reasons these days are to sit down somewhere quiet and explain code to a junior, or if a long method is really bugged and needs some very through pen and paper work. Screens do not always suffice, especially when you want notes and highlighting everywhere.


It was common many years ago in the times of the DOS programming, 80 characters were precisely filling a printed page. We had matrix printers then so the limitation was probably on the hardware side. It was also the limit on a console screen.


Not anymore. I used to do it all the time in the pre-IDE days, back when dot-matrix with continuous feed was the norm. You could spread those printouts out and flip through them quite easily. Modern sheet-fed laser/inkjet printers are a huge step backwards. Stapling them together doesn't flow as well, and not stapling results in loose sheets that get mixed up. Modern IDEs with automatic highlighting and method navigators also eliminate whole classes of errors that were caught by examining printouts.


I sometimes print my code because I am on a smallish (15") single monitor. I sometimes need to combine two programs and it is very hard to switch back and forth between them. I don't do this often though, only when necessary.


I only print out the code that comes together with a scientific article. Because this code frequently provides the implementation of an algorithm (a complex one I'd say), and you need a couple of hours to process it.

I doubt I would print out the code that contains SQL statements, or some GUI programming.


I find it easier to figure out large modules if I can print them out and quickly see various sections. I could probably do something similar with multiple monitors, but if I have more than 2-3 places in the code to look at, it's quicker to have it all spread out in one place than to keep scrolling and keeping track of bookmarks. I also like to mark up printouts with changes rather than make them in the editor, because I can see the old code and the new code side-by-side. Sure, I could comment out the old code in the editor, but if you're replacing more than a few lines then you wind up scrolling the old code off the monitor, so you're no better off.


That said, I almost never print code anymore. It was great on fanfold paper, where the whole listing was continuous and you had plenty of space for notes in the margins, but printing everything out on individual letter-size pages is almost as bad as just keeping it on-screen. Especially when your editor insists on putting headers and footers in 1" margins. Fortunately, modern IDEs offer a lot of tools that reduce the need to print things out.


I don't print anything for myself, and I only print for others when I can't get out of it. I hate receiving printouts as well. They clutter up my desk and then I'm responsible for them (save it? file it? shred it? use it as scrap?)


Considering we have Moodle which allows electronic submission of coursework, quite why we don't always upload code is beyond me - we have to pay to print things out on the University Printers, and there is not a single CD burner on any of the PC's that I know of.Of course, the lecturers don't like Moodle - but that's another question entirely.


The new tools support me better and allow me to navigate fast and they deliver many types of summaries and views. Therefore I do not print as often as before.But sequential reading of printouts is still easier. My personal main reason to print is psychological: It prevents me from continuing to search and while the printer prints I start thinking! Also the beneficial effect of standing up and walking to the printer should not be underestimated :)


Back in the days when US laws didn't allow export of strong cryptography, US-based open source developers used to print code and snail-mail them outside US, where they were scanned by volounteers. But I'm not sure if this answers your question ;)

3a8082e126
Reply all
Reply to author
Forward
0 new messages