To display code in a pretty fashion, matching commonly accepted principles of formatting and syntax, for the sake of readability.