HACKER Q&A
📣 develatio

How is the code from the IOCCC contest submissions shaped / indented?


Some, if not most, of the code submissions sent to IOCCC are indented / "shaped".

Examples:

* https://www.ioccc.org/2018/vokes/prog.c

* https://www.ioccc.org/2018/yang/prog.c

* https://www.ioccc.org/2018/poikola/prog.c

* https://github.com/mame/quine-relay/blob/master/QR.rb

How is the code of all these submissions formatted / shaped? Is it done by hand? Or is there some tool / way of automating the "shaping" of a given chunk of code?


  👤 lifthrasiir Accepted Answer ✓
Almost by hand. You may have a template image, but it is mostly a manual work to fit the code into that template. As an actual demonstration recent submissions from Don Yang have a file called `spoiler.html` that shows this exact procedure.