Format source according to guidelines