Literate programming Literate programming (LP) is the practice of writing code and documentation as an integrated whole, with the view that computer programs are not only for implementation, but also communication. Typically, a programmer writes the program and documentation in a single file, usually interweaving the two in a meaningful way, then uses an LP