Format script file.