Clarified code generator with format().