I recently encountered someone that wrote a paper including 100 pages of pasted (computer) code. When I suggested that the pages of code could be better uploaded and made freely available on github.com (a public open platform where people upload code to share, and can specify a license for the code) as it is common practice.
He answered that due to copyright he could not do that. How would disclosing code printed on paper be different from disclosing it on a web page?