format the code in leap painter